org.apache.hadoop.hbase.thrift
Class MetricsThriftServerSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.thrift.MetricsThriftServerSourceImpl
All Implemented Interfaces:
BaseSource, JvmPauseMonitorSource, MetricsThriftServerSource, MetricsSource

@InterfaceAudience.Private
public class MetricsThriftServerSourceImpl
extends BaseSourceImpl
implements MetricsThriftServerSource

Hadoop 2 version of MetricsThriftServerSourceMetricsThriftServerSource Implements BaseSource through BaseSourceImpl, following the pattern


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.thrift.MetricsThriftServerSource
BATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEY
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource
INFO_THRESHOLD_COUNT_DESC, INFO_THRESHOLD_COUNT_KEY, PAUSE_TIME_WITH_GC_DESC, PAUSE_TIME_WITH_GC_KEY, PAUSE_TIME_WITHOUT_GC_DESC, PAUSE_TIME_WITHOUT_GC_KEY, WARN_THRESHOLD_COUNT_DESC, WARN_THRESHOLD_COUNT_KEY
 
Constructor Summary
MetricsThriftServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
           
 
Method Summary
 void incCall(long time)
           
 void incInfoThresholdExceeded(int count)
           
 void incMethodTime(String name, long time)
           
 void incNumRowKeysInBatchGet(int diff)
           
 void incNumRowKeysInBatchMutate(int diff)
           
 void incSlowCall(long time)
           
 void incTimeInQueue(long time)
           
 void incWarnThresholdExceeded(int count)
           
 void init()
           
 void setCallQueueLen(int len)
           
 void updatePauseTimeWithGc(long t)
           
 void updatePauseTimeWithoutGc(long t)
           
 
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, 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, removeMetric, setGauge, updateHistogram, updateQuantile
 

Constructor Detail

MetricsThriftServerSourceImpl

public MetricsThriftServerSourceImpl(String metricsName,
                                     String metricsDescription,
                                     String metricsContext,
                                     String metricsJmxContext)
Method Detail

init

public void init()
Specified by:
init in interface BaseSource
Overrides:
init in class BaseSourceImpl

incTimeInQueue

public void incTimeInQueue(long time)
Specified by:
incTimeInQueue in interface MetricsThriftServerSource

setCallQueueLen

public void setCallQueueLen(int len)
Specified by:
setCallQueueLen in interface MetricsThriftServerSource

incNumRowKeysInBatchGet

public void incNumRowKeysInBatchGet(int diff)
Specified by:
incNumRowKeysInBatchGet in interface MetricsThriftServerSource

incNumRowKeysInBatchMutate

public void incNumRowKeysInBatchMutate(int diff)
Specified by:
incNumRowKeysInBatchMutate in interface MetricsThriftServerSource

incMethodTime

public void incMethodTime(String name,
                          long time)
Specified by:
incMethodTime in interface MetricsThriftServerSource

incCall

public void incCall(long time)
Specified by:
incCall in interface MetricsThriftServerSource

incSlowCall

public void incSlowCall(long time)
Specified by:
incSlowCall in interface MetricsThriftServerSource

incInfoThresholdExceeded

public void incInfoThresholdExceeded(int count)
Specified by:
incInfoThresholdExceeded in interface JvmPauseMonitorSource

incWarnThresholdExceeded

public void incWarnThresholdExceeded(int count)
Specified by:
incWarnThresholdExceeded in interface JvmPauseMonitorSource

updatePauseTimeWithGc

public void updatePauseTimeWithGc(long t)
Specified by:
updatePauseTimeWithGc in interface JvmPauseMonitorSource

updatePauseTimeWithoutGc

public void updatePauseTimeWithoutGc(long t)
Specified by:
updatePauseTimeWithoutGc in interface JvmPauseMonitorSource


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.