View Javadoc

1   /**
2    *
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *     http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   */
19  
20  package org.apache.hadoop.hbase.ipc;
21  
22  import org.apache.hadoop.hbase.metrics.BaseSource;
23  
24  public interface MetricsHBaseServerSource extends BaseSource {
25    String AUTHORIZATION_SUCCESSES_NAME = "authorizationSuccesses";
26    String AUTHORIZATION_SUCCESSES_DESC =
27        "Number of authorization successes.";
28    String AUTHORIZATION_FAILURES_NAME = "authorizationFailures";
29    String AUTHORIZATION_FAILURES_DESC =
30        "Number of authorization failures.";
31    String AUTHENTICATION_SUCCESSES_NAME = "authenticationSuccesses";
32    String AUTHENTICATION_SUCCESSES_DESC =
33        "Number of authentication successes.";
34    String AUTHENTICATION_FAILURES_NAME = "authenticationFailures";
35    String AUTHENTICATION_FAILURES_DESC =
36        "Number of authentication failures.";
37    String AUTHENTICATION_FALLBACKS_NAME = "authenticationFallbacks";
38    String AUTHENTICATION_FALLBACKS_DESC =
39        "Number of fallbacks to insecure authentication.";
40    String SENT_BYTES_NAME = "sentBytes";
41    String SENT_BYTES_DESC = "Number of bytes sent.";
42    String RECEIVED_BYTES_NAME = "receivedBytes";
43    String RECEIVED_BYTES_DESC = "Number of bytes received.";
44    String REQUEST_SIZE_NAME = "requestSize";
45    String REQUEST_SIZE_DESC = "Request size in bytes.";
46    String RESPONSE_SIZE_NAME = "responseSize";
47    String RESPONSE_SIZE_DESC = "Response size in bytes.";
48    String QUEUE_CALL_TIME_NAME = "queueCallTime";
49    String QUEUE_CALL_TIME_DESC = "Queue Call Time.";
50    String PROCESS_CALL_TIME_NAME = "processCallTime";
51    String PROCESS_CALL_TIME_DESC = "Processing call time.";
52    String TOTAL_CALL_TIME_NAME = "totalCallTime";
53    String TOTAL_CALL_TIME_DESC = "Total call time, including both queued and processing time.";
54    String QUEUE_SIZE_NAME = "queueSize";
55    String QUEUE_SIZE_DESC = "Number of bytes in the call queues; request has been read and " +
56      "parsed and is waiting to run or is currently being executed.";
57    String GENERAL_QUEUE_NAME = "numCallsInGeneralQueue";
58    String GENERAL_QUEUE_DESC = "Number of calls in the general call queue; " +
59      "parsed requests waiting in scheduler to be executed";
60    String PRIORITY_QUEUE_NAME = "numCallsInPriorityQueue";
61    String REPLICATION_QUEUE_NAME = "numCallsInReplicationQueue";
62    String REPLICATION_QUEUE_DESC =
63        "Number of calls in the replication call queue waiting to be run";
64    String PRIORITY_QUEUE_DESC = "Number of calls in the priority call queue waiting to be run";
65    String NUM_OPEN_CONNECTIONS_NAME = "numOpenConnections";
66    String NUM_OPEN_CONNECTIONS_DESC = "Number of open connections.";
67    String NUM_ACTIVE_HANDLER_NAME = "numActiveHandler";
68    String NUM_ACTIVE_HANDLER_DESC = "Number of active rpc handlers.";
69    String NUM_GENERAL_CALLS_DROPPED_NAME = "numGeneralCallsDropped";
70    String NUM_GENERAL_CALLS_DROPPED_DESC = "Total number of calls in general queue which " +
71      "were dropped by CoDel RPC executor";
72    String NUM_LIFO_MODE_SWITCHES_NAME = "numLifoModeSwitches";
73    String NUM_LIFO_MODE_SWITCHES_DESC = "Total number of calls in general queue which " +
74      "were served from the tail of the queue";
75
76    String EXCEPTIONS_NAME="exceptions";
77    String EXCEPTIONS_DESC="Exceptions caused by requests";
78    String EXCEPTIONS_TYPE_DESC="Number of requests that resulted in the specified type of Exception";
79    String EXCEPTIONS_OOO_NAME="exceptions.OutOfOrderScannerNextException";
80    String EXCEPTIONS_BUSY_NAME="exceptions.RegionTooBusyException";
81    String EXCEPTIONS_UNKNOWN_NAME="exceptions.UnknownScannerException";
82    String EXCEPTIONS_SANITY_NAME="exceptions.FailedSanityCheckException";
83    String EXCEPTIONS_MOVED_NAME="exceptions.RegionMovedException";
84    String EXCEPTIONS_NSRE_NAME="exceptions.NotServingRegionException";
85    String EXCEPTIONS_MULTI_TOO_LARGE_NAME = "exceptions.multiResponseTooLarge";
86    String EXCEPTIONS_MULTI_TOO_LARGE_DESC = "A response to a multi request was too large and the " +
87        "rest of the requests will have to be retried.";
88    String EXCEPTIONS_CALL_QUEUE_TOO_BIG = "exceptions.callQueueTooBig";
89    String EXCEPTIONS_CALL_QUEUE_TOO_BIG_DESC = "Call queue is full";
90  
91    void authorizationSuccess();
92  
93    void authorizationFailure();
94  
95    void authenticationSuccess();
96  
97    void authenticationFailure();
98  
99    void authenticationFallback();
100
101   void exception();
102
103   /**
104    * Different types of exceptions
105    */
106   void outOfOrderException();
107   void failedSanityException();
108   void movedRegionException();
109   void notServingRegionException();
110   void unknownScannerException();
111   void tooBusyException();
112   void multiActionTooLargeException();
113   void callQueueTooBigException();
114
115   void sentBytes(long count);
116
117   void receivedBytes(int count);
118
119   void sentResponse(long count);
120
121   void receivedRequest(long count);
122
123   void dequeuedCall(int qTime);
124
125   void processedCall(int processingTime);
126
127   void queuedAndProcessedCall(int totalTime);
128
129
130 }