@InterfaceAudience.Private public class MetricsThriftServerSourceImpl extends ExceptionTrackingSourceImpl implements MetricsThriftServerSource
MetricsThriftServerSource
Implements BaseSource through BaseSourceImpl, following the patternexceptions, exceptionsBusy, exceptionsCallQueueTooBig, exceptionsMoved, exceptionsMultiTooLarge, exceptionsNSRE, exceptionsOOO, exceptionsSanity, exceptionsScannerReset, exceptionsUnknownmetricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistryACTIVE_WORKER_COUNT_KEY, BATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEYEXCEPTIONS_BUSY_NAME, EXCEPTIONS_CALL_QUEUE_TOO_BIG, EXCEPTIONS_CALL_QUEUE_TOO_BIG_DESC, EXCEPTIONS_DESC, EXCEPTIONS_MOVED_NAME, EXCEPTIONS_MULTI_TOO_LARGE_DESC, EXCEPTIONS_MULTI_TOO_LARGE_NAME, EXCEPTIONS_NAME, EXCEPTIONS_NSRE_NAME, EXCEPTIONS_OOO_NAME, EXCEPTIONS_SANITY_NAME, EXCEPTIONS_SCANNER_RESET_NAME, EXCEPTIONS_TYPE_DESC, EXCEPTIONS_UNKNOWN_NAMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsThriftServerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
decActiveWorkerCount()
Decrement number of active thrift workers.
|
void |
incActiveWorkerCount()
Increment number of active thrift workers.
|
void |
incCall(long time)
Add how long a call took
|
void |
incMethodTime(String name,
long time)
Add how long a method took
|
void |
incNumRowKeysInBatchGet(int diff)
Add how many keys were in a batch get.
|
void |
incNumRowKeysInBatchMutate(int diff)
Add how many keys were in a batch mutate.
|
void |
incSlowCall(long time)
Increment how long a slow call took.
|
void |
incTimeInQueue(long time)
Add how long an operation was in the queue.
|
void |
init()
Clear out the metrics and re-prepare the source.
|
void |
setCallQueueLen(int len)
Set the call queue length.
|
callQueueTooBigException, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, outOfOrderException, scannerResetException, tooBusyException, unknownScannerExceptiondecGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcallQueueTooBigException, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, outOfOrderException, scannerResetException, tooBusyException, unknownScannerExceptiondecGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogrampublic void init()
BaseSourceinit in interface BaseSourceinit in class ExceptionTrackingSourceImplpublic void incTimeInQueue(long time)
MetricsThriftServerSourceincTimeInQueue in interface MetricsThriftServerSourcepublic void setCallQueueLen(int len)
MetricsThriftServerSourcesetCallQueueLen in interface MetricsThriftServerSourcelen - Timepublic void incNumRowKeysInBatchGet(int diff)
MetricsThriftServerSourceincNumRowKeysInBatchGet in interface MetricsThriftServerSourcediff - Num Keyspublic void incNumRowKeysInBatchMutate(int diff)
MetricsThriftServerSourceincNumRowKeysInBatchMutate in interface MetricsThriftServerSourcediff - Num Keyspublic void incMethodTime(String name, long time)
MetricsThriftServerSourceincMethodTime in interface MetricsThriftServerSourcename - Method nametime - Timepublic void incCall(long time)
MetricsThriftServerSourceincCall in interface MetricsThriftServerSourcetime - Timepublic void incSlowCall(long time)
MetricsThriftServerSourceincSlowCall in interface MetricsThriftServerSourcetime - Timepublic void incActiveWorkerCount()
MetricsThriftServerSourceincActiveWorkerCount in interface MetricsThriftServerSourcepublic void decActiveWorkerCount()
MetricsThriftServerSourcedecActiveWorkerCount in interface MetricsThriftServerSourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.