public class MetricsThriftServerSourceImpl extends BaseSourceImpl implements MetricsThriftServerSource
MetricsThriftServerSource
Implements BaseSource through BaseSourceImpl, following the patternmetricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistryBATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEYHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsThriftServerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantilepublic void init()
BaseSourceinit in interface BaseSourceinit in class BaseSourceImplpublic 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 - TimeCopyright © 2014 The Apache Software Foundation. All rights reserved.