org.apache.hadoop.hbase.ipc
Class MetricsHBaseServerSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.ipc.MetricsHBaseServerSourceImpl
All Implemented Interfaces:
MetricsHBaseServerSource, BaseSource, org.apache.hadoop.metrics2.MetricsSource

public class MetricsHBaseServerSourceImpl
extends BaseSourceImpl
implements MetricsHBaseServerSource


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.ipc.MetricsHBaseServerSource
AUTHENTICATION_FAILURES_DESC, AUTHENTICATION_FAILURES_NAME, AUTHENTICATION_SUCCESSES_DESC, AUTHENTICATION_SUCCESSES_NAME, AUTHORIZATION_FAILURES_DESC, AUTHORIZATION_FAILURES_NAME, AUTHORIZATION_SUCCESSES_DESC, AUTHORIZATION_SUCCESSES_NAME, GENERAL_QUEUE_DESC, GENERAL_QUEUE_NAME, NUM_OPEN_CONNECTIONS_DESC, NUM_OPEN_CONNECTIONS_NAME, PRIORITY_QUEUE_DESC, PRIORITY_QUEUE_NAME, PROCESS_CALL_TIME_DESC, PROCESS_CALL_TIME_NAME, QUEUE_CALL_TIME_DESC, QUEUE_CALL_TIME_NAME, QUEUE_SIZE_DESC, QUEUE_SIZE_NAME, RECEIVED_BYTES_DESC, RECEIVED_BYTES_NAME, REPLICATION_QUEUE_DESC, REPLICATION_QUEUE_NAME, SENT_BYTES_DESC, SENT_BYTES_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Constructor Summary
MetricsHBaseServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsHBaseServerWrapper wrapper)
           
 
Method Summary
 void authenticationFailure()
           
 void authenticationSuccess()
           
 void authorizationFailure()
           
 void authorizationSuccess()
           
 void dequeuedCall(int qTime)
           
 void getMetrics(org.apache.hadoop.metrics2.MetricsBuilder metricsBuilder, boolean all)
          Method to export all the metrics.
 void processedCall(int processingTime)
           
 void receivedBytes(int count)
           
 void sentBytes(int count)
           
 
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 

Constructor Detail

MetricsHBaseServerSourceImpl

public MetricsHBaseServerSourceImpl(String metricsName,
                                    String metricsDescription,
                                    String metricsContext,
                                    String metricsJmxContext,
                                    MetricsHBaseServerWrapper wrapper)
Method Detail

authorizationSuccess

public void authorizationSuccess()
Specified by:
authorizationSuccess in interface MetricsHBaseServerSource

authorizationFailure

public void authorizationFailure()
Specified by:
authorizationFailure in interface MetricsHBaseServerSource

authenticationFailure

public void authenticationFailure()
Specified by:
authenticationFailure in interface MetricsHBaseServerSource

authenticationSuccess

public void authenticationSuccess()
Specified by:
authenticationSuccess in interface MetricsHBaseServerSource

sentBytes

public void sentBytes(int count)
Specified by:
sentBytes in interface MetricsHBaseServerSource

receivedBytes

public void receivedBytes(int count)
Specified by:
receivedBytes in interface MetricsHBaseServerSource

dequeuedCall

public void dequeuedCall(int qTime)
Specified by:
dequeuedCall in interface MetricsHBaseServerSource

processedCall

public void processedCall(int processingTime)
Specified by:
processedCall in interface MetricsHBaseServerSource

getMetrics

public void getMetrics(org.apache.hadoop.metrics2.MetricsBuilder metricsBuilder,
                       boolean all)
Description copied from class: BaseSourceImpl
Method to export all the metrics.

Specified by:
getMetrics in interface org.apache.hadoop.metrics2.MetricsSource
Overrides:
getMetrics in class BaseSourceImpl
Parameters:
metricsBuilder - Builder to accept metrics
all - push all or only changed?


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.