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 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 QUEUE_SIZE_NAME = "queueSize";
46    String QUEUE_SIZE_DESC = "Number of bytes in the call queues.";
47    String GENERAL_QUEUE_NAME = "numCallsInGeneralQueue";
48    String GENERAL_QUEUE_DESC = "Number of calls in the general call queue.";
49    String PRIORITY_QUEUE_NAME = "numCallsInPriorityQueue";
50    String REPLICATION_QUEUE_NAME = "numCallsInReplicationQueue";
51    String REPLICATION_QUEUE_DESC =
52        "Number of calls in the replication call queue.";
53    String PRIORITY_QUEUE_DESC = "Number of calls in the priority call queue.";
54    String NUM_OPEN_CONNECTIONS_NAME = "numOpenConnections";
55    String NUM_OPEN_CONNECTIONS_DESC = "Number of open connections.";
56  
57    void authorizationSuccess();
58  
59    void authorizationFailure();
60  
61    void authenticationSuccess();
62  
63    void authenticationFailure();
64  
65    void sentBytes(long count);
66  
67    void receivedBytes(int count);
68  
69    void dequeuedCall(int qTime);
70  
71    void processedCall(int processingTime);
72  }