1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 SENT_BYTES_NAME = "sentBytes";
38 String SENT_BYTES_DESC = "Number of bytes sent.";
39 String RECEIVED_BYTES_NAME = "receivedBytes";
40 String RECEIVED_BYTES_DESC = "Number of bytes received.";
41 String QUEUE_CALL_TIME_NAME = "queueCallTime";
42 String QUEUE_CALL_TIME_DESC = "Queue Call Time.";
43 String PROCESS_CALL_TIME_NAME = "processCallTime";
44 String PROCESS_CALL_TIME_DESC = "Processing call time.";
45 String TOTAL_CALL_TIME_NAME = "totalCallTime";
46 String TOTAL_CALL_TIME_DESC = "Total call time, including both queued and processing time.";
47 String QUEUE_SIZE_NAME = "queueSize";
48 String QUEUE_SIZE_DESC = "Number of bytes in the call queues.";
49 String GENERAL_QUEUE_NAME = "numCallsInGeneralQueue";
50 String GENERAL_QUEUE_DESC = "Number of calls in the general call queue.";
51 String PRIORITY_QUEUE_NAME = "numCallsInPriorityQueue";
52 String REPLICATION_QUEUE_NAME = "numCallsInReplicationQueue";
53 String REPLICATION_QUEUE_DESC =
54 "Number of calls in the replication call queue.";
55 String PRIORITY_QUEUE_DESC = "Number of calls in the priority call queue.";
56 String NUM_OPEN_CONNECTIONS_NAME = "numOpenConnections";
57 String NUM_OPEN_CONNECTIONS_DESC = "Number of open connections.";
58 String NUM_ACTIVE_HANDLER_NAME = "numActiveHandler";
59 String NUM_ACTIVE_HANDLER_DESC = "Number of active rpc handlers.";
60
61 String EXCEPTIONS_NAME="exceptions";
62 String EXCEPTIONS_DESC="Exceptions caused by requests";
63 String EXCEPTIONS_TYPE_DESC="Number of requests that resulted in the specified type of Exception";
64 String EXCEPTIONS_OOO_NAME="exceptions.OutOfOrderScannerNextException";
65 String EXCEPTIONS_BUSY_NAME="exceptions.RegionTooBusyException";
66 String EXCEPTIONS_UNKNOWN_NAME="exceptions.UnknownScannerException";
67 String EXCEPTIONS_SANITY_NAME="exceptions.FailedSanityCheckException";
68 String EXCEPTIONS_MOVED_NAME="exceptions.RegionMovedException";
69 String EXCEPTIONS_NSRE_NAME="exceptions.NotServingRegionException";
70
71 void authorizationSuccess();
72
73 void authorizationFailure();
74
75 void authenticationSuccess();
76
77 void authenticationFailure();
78
79 void exception();
80
81
82
83
84 void outOfOrderException();
85 void failedSanityException();
86 void movedRegionException();
87 void notServingRegionException();
88 void unknownScannerException();
89 void tooBusyException();
90
91 void sentBytes(long count);
92
93 void receivedBytes(int count);
94
95 void dequeuedCall(int qTime);
96
97 void processedCall(int processingTime);
98
99 void queuedAndProcessedCall(int totalTime);
100 }