Package org.apache.hadoop.hbase.thrift
Class MetricsThriftServerSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.metrics.ExceptionTrackingSourceImpl
org.apache.hadoop.hbase.thrift.MetricsThriftServerSourceImpl
- All Implemented Interfaces:
BaseSource,ExceptionTrackingSource,JvmPauseMonitorSource,MetricsThriftServerSource,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsThriftServerSourceImpl
extends ExceptionTrackingSourceImpl
implements MetricsThriftServerSource
Hadoop 2 version of
MetricsThriftServerSource Implements
BaseSource through BaseSourceImpl, following the pattern-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate MetricHistogramprivate MetricHistogramprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final MutableFastCounterprivate final MetricHistogramprivate final MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate MetricHistogramprivate final MutableFastCounterFields inherited from class org.apache.hadoop.hbase.metrics.ExceptionTrackingSourceImpl
exceptionRequestTooBig, exceptions, exceptionsBusy, exceptionsCallDropped, exceptionsCallQueueTooBig, exceptionsCallTimedOut, exceptionsMoved, exceptionsMultiTooLarge, exceptionsNSRE, exceptionsOOO, exceptionsQuotaExceeded, exceptionsRpcThrottling, exceptionsSanity, exceptionsScannerReset, exceptionsUnknown, otherExceptionsFields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields inherited from interface org.apache.hadoop.hbase.metrics.ExceptionTrackingSource
EXCEPTIONS_BUSY_NAME, EXCEPTIONS_CALL_DROPPED, EXCEPTIONS_CALL_QUEUE_TOO_BIG, EXCEPTIONS_CALL_QUEUE_TOO_BIG_DESC, EXCEPTIONS_CALL_TIMED_OUT, EXCEPTIONS_DESC, EXCEPTIONS_MOVED_NAME, EXCEPTIONS_MULTI_TOO_LARGE_DESC, EXCEPTIONS_MULTI_TOO_LARGE_NAME, EXCEPTIONS_NAME, EXCEPTIONS_NSRE_NAME, EXCEPTIONS_OOO_NAME, EXCEPTIONS_QUOTA_EXCEEDED, EXCEPTIONS_REQUEST_TOO_BIG, EXCEPTIONS_RPC_THROTTLING, EXCEPTIONS_SANITY_NAME, EXCEPTIONS_SCANNER_RESET_NAME, EXCEPTIONS_TYPE_DESC, EXCEPTIONS_UNKNOWN_NAME, OTHER_EXCEPTIONSFields 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_KEYFields inherited from interface org.apache.hadoop.hbase.thrift.MetricsThriftServerSource
ACTIVE_WORKER_COUNT_KEY, BATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEY -
Constructor Summary
ConstructorsConstructorDescriptionMetricsThriftServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrement number of active thrift workers.voidIncrement number of active thrift workers.voidincCall(long time) Add how long a call tookvoidincInfoThresholdExceeded(int count) Increment the INFO level threshold exceeded countvoidincMethodTime(String name, long time) Add how long a method tookvoidincNumRowKeysInBatchGet(int diff) Add how many keys were in a batch get.voidincNumRowKeysInBatchMutate(int diff) Add how many keys were in a batch mutate.voidincSlowCall(long time) Increment how long a slow call took.voidincTimeInQueue(long time) Add how long an operation was in the queue.voidincWarnThresholdExceeded(int count) Increment the WARN level threshold exceeded countvoidinit()Clear out the metrics and re-prepare the source.voidsetCallQueueLen(int len) Set the call queue length.voidupdatePauseTimeWithGc(long t) Update the pause time histogram where GC activity was detected.voidupdatePauseTimeWithoutGc(long t) Update the pause time histogram where GC activity was not detected.Methods inherited from class org.apache.hadoop.hbase.metrics.ExceptionTrackingSourceImpl
callDroppedException, callQueueTooBigException, callTimedOut, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, otherExceptions, outOfOrderException, quotaExceededException, requestTooBigException, rpcThrottlingException, scannerResetException, tooBusyException, unknownScannerExceptionMethods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogramMethods inherited from interface org.apache.hadoop.hbase.metrics.ExceptionTrackingSource
callDroppedException, callQueueTooBigException, callTimedOut, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, otherExceptions, outOfOrderException, quotaExceededException, requestTooBigException, rpcThrottlingException, scannerResetException, tooBusyException, unknownScannerException
-
Field Details
-
batchGetStat
-
batchMutateStat
-
queueTimeStat
-
thriftCallStat
-
thriftSlowCallStat
-
callQueueLenGauge
-
activeWorkerCountGauge
-
infoPauseThresholdExceeded
-
warnPauseThresholdExceeded
-
pausesWithGc
-
pausesWithoutGc
-
-
Constructor Details
-
MetricsThriftServerSourceImpl
public MetricsThriftServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
init
Description copied from interface:BaseSourceClear out the metrics and re-prepare the source.- Specified by:
initin interfaceBaseSource- Overrides:
initin classExceptionTrackingSourceImpl
-
incTimeInQueue
Description copied from interface:MetricsThriftServerSourceAdd how long an operation was in the queue.- Specified by:
incTimeInQueuein interfaceMetricsThriftServerSource
-
setCallQueueLen
Description copied from interface:MetricsThriftServerSourceSet the call queue length.- Specified by:
setCallQueueLenin interfaceMetricsThriftServerSource- Parameters:
len- Time
-
incNumRowKeysInBatchGet
Description copied from interface:MetricsThriftServerSourceAdd how many keys were in a batch get.- Specified by:
incNumRowKeysInBatchGetin interfaceMetricsThriftServerSource- Parameters:
diff- Num Keys
-
incNumRowKeysInBatchMutate
Description copied from interface:MetricsThriftServerSourceAdd how many keys were in a batch mutate.- Specified by:
incNumRowKeysInBatchMutatein interfaceMetricsThriftServerSource- Parameters:
diff- Num Keys
-
incMethodTime
Description copied from interface:MetricsThriftServerSourceAdd how long a method took- Specified by:
incMethodTimein interfaceMetricsThriftServerSource- Parameters:
name- Method nametime- Time
-
incCall
Description copied from interface:MetricsThriftServerSourceAdd how long a call took- Specified by:
incCallin interfaceMetricsThriftServerSource- Parameters:
time- Time
-
incSlowCall
Description copied from interface:MetricsThriftServerSourceIncrement how long a slow call took.- Specified by:
incSlowCallin interfaceMetricsThriftServerSource- Parameters:
time- Time
-
incActiveWorkerCount
Description copied from interface:MetricsThriftServerSourceIncrement number of active thrift workers.- Specified by:
incActiveWorkerCountin interfaceMetricsThriftServerSource
-
decActiveWorkerCount
Description copied from interface:MetricsThriftServerSourceDecrement number of active thrift workers.- Specified by:
decActiveWorkerCountin interfaceMetricsThriftServerSource
-
incInfoThresholdExceeded
Description copied from interface:JvmPauseMonitorSourceIncrement the INFO level threshold exceeded count- Specified by:
incInfoThresholdExceededin interfaceJvmPauseMonitorSource- Parameters:
count- the count
-
incWarnThresholdExceeded
Description copied from interface:JvmPauseMonitorSourceIncrement the WARN level threshold exceeded count- Specified by:
incWarnThresholdExceededin interfaceJvmPauseMonitorSource- Parameters:
count- the count
-
updatePauseTimeWithGc
Description copied from interface:JvmPauseMonitorSourceUpdate the pause time histogram where GC activity was detected.- Specified by:
updatePauseTimeWithGcin interfaceJvmPauseMonitorSource- Parameters:
t- time it took
-
updatePauseTimeWithoutGc
Description copied from interface:JvmPauseMonitorSourceUpdate the pause time histogram where GC activity was not detected.- Specified by:
updatePauseTimeWithoutGcin interfaceJvmPauseMonitorSource- Parameters:
t- time it took
-