@InterfaceAudience.Private public class MetricsThriftServerSourceImpl extends ExceptionTrackingSourceImpl implements MetricsThriftServerSource
MetricsThriftServerSource
Implements BaseSource through BaseSourceImpl, following the pattern| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
activeWorkerCountGauge |
private MetricHistogram |
batchGetStat |
private MetricHistogram |
batchMutateStat |
private org.apache.hadoop.metrics2.lib.MutableGaugeLong |
callQueueLenGauge |
private MutableFastCounter |
infoPauseThresholdExceeded |
private MetricHistogram |
pausesWithGc |
private MetricHistogram |
pausesWithoutGc |
private MetricHistogram |
queueTimeStat |
private MetricHistogram |
thriftCallStat |
private MetricHistogram |
thriftSlowCallStat |
private MutableFastCounter |
warnPauseThresholdExceeded |
exceptions, exceptionsBusy, exceptionsCallQueueTooBig, exceptionsMoved, exceptionsMultiTooLarge, exceptionsNSRE, exceptionsOOO, exceptionsSanity, exceptionsScannerReset, exceptionsUnknownmetricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryACTIVE_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_NAMEINFO_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 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 |
incInfoThresholdExceeded(int count)
Increment the INFO level threshold exceeded count
|
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 |
incWarnThresholdExceeded(int count)
Increment the WARN level threshold exceeded count
|
void |
init()
Clear out the metrics and re-prepare the source.
|
void |
setCallQueueLen(int len)
Set the call queue length.
|
void |
updatePauseTimeWithGc(long t)
Update the pause time histogram where GC activity was detected.
|
void |
updatePauseTimeWithoutGc(long t)
Update the pause time histogram where GC activity was not detected.
|
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, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogramprivate MetricHistogram batchGetStat
private MetricHistogram batchMutateStat
private MetricHistogram queueTimeStat
private MetricHistogram thriftCallStat
private MetricHistogram thriftSlowCallStat
private org.apache.hadoop.metrics2.lib.MutableGaugeLong callQueueLenGauge
private org.apache.hadoop.metrics2.lib.MutableGaugeLong activeWorkerCountGauge
private final MutableFastCounter infoPauseThresholdExceeded
private final MutableFastCounter warnPauseThresholdExceeded
private final MetricHistogram pausesWithGc
private final MetricHistogram pausesWithoutGc
public MetricsThriftServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public 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 MetricsThriftServerSourcepublic void incInfoThresholdExceeded(int count)
JvmPauseMonitorSourceincInfoThresholdExceeded in interface JvmPauseMonitorSourcecount - the countpublic void incWarnThresholdExceeded(int count)
JvmPauseMonitorSourceincWarnThresholdExceeded in interface JvmPauseMonitorSourcecount - the countpublic void updatePauseTimeWithGc(long t)
JvmPauseMonitorSourceupdatePauseTimeWithGc in interface JvmPauseMonitorSourcet - time it tookpublic void updatePauseTimeWithoutGc(long t)
JvmPauseMonitorSourceupdatePauseTimeWithoutGc in interface JvmPauseMonitorSourcet - time it tookCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.