@InterfaceAudience.Private public class MetricsThriftServerSourceImpl extends BaseSourceImpl implements MetricsThriftServerSource
MetricsThriftServerSource
Implements BaseSource through BaseSourceImpl, following the patternmetricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
BATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEY
HBASE_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, updateQuantile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void incTimeInQueue(long time)
MetricsThriftServerSource
incTimeInQueue
in interface MetricsThriftServerSource
public void setCallQueueLen(int len)
MetricsThriftServerSource
setCallQueueLen
in interface MetricsThriftServerSource
len
- Timepublic void incNumRowKeysInBatchGet(int diff)
MetricsThriftServerSource
incNumRowKeysInBatchGet
in interface MetricsThriftServerSource
diff
- Num Keyspublic void incNumRowKeysInBatchMutate(int diff)
MetricsThriftServerSource
incNumRowKeysInBatchMutate
in interface MetricsThriftServerSource
diff
- Num Keyspublic void incMethodTime(String name, long time)
MetricsThriftServerSource
incMethodTime
in interface MetricsThriftServerSource
name
- Method nametime
- Timepublic void incCall(long time)
MetricsThriftServerSource
incCall
in interface MetricsThriftServerSource
time
- Timepublic void incSlowCall(long time)
MetricsThriftServerSource
incSlowCall
in interface MetricsThriftServerSource
time
- TimeCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.