|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.thrift.MetricsThriftServerSourceImpl
public class MetricsThriftServerSourceImpl
Hadoop 2 version of MetricsThriftServerSourceMetricsThriftServerSource
Implements BaseSource through BaseSourceImpl, following the pattern
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
|---|
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry |
| Fields inherited from interface org.apache.hadoop.hbase.thrift.MetricsThriftServerSource |
|---|
BATCH_GET_KEY, BATCH_MUTATE_KEY, CALL_QUEUE_LEN_KEY, SLOW_THRIFT_CALL_KEY, THRIFT_CALL_KEY, TIME_IN_QUEUE_KEY |
| Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
|---|
HBASE_METRICS_SYSTEM_NAME |
| Constructor Summary | |
|---|---|
MetricsThriftServerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
|---|
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
|---|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile |
| Constructor Detail |
|---|
public MetricsThriftServerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext)
| Method Detail |
|---|
public void init()
BaseSource
init in interface BaseSourceinit in class BaseSourceImplpublic void incTimeInQueue(long time)
MetricsThriftServerSource
incTimeInQueue in interface MetricsThriftServerSourcepublic void setCallQueueLen(int len)
MetricsThriftServerSource
setCallQueueLen in interface MetricsThriftServerSourcelen - Timepublic void incNumRowKeysInBatchGet(int diff)
MetricsThriftServerSource
incNumRowKeysInBatchGet in interface MetricsThriftServerSourcediff - Num Keyspublic void incNumRowKeysInBatchMutate(int diff)
MetricsThriftServerSource
incNumRowKeysInBatchMutate in interface MetricsThriftServerSourcediff - Num Keys
public void incMethodTime(String name,
long time)
MetricsThriftServerSource
incMethodTime in interface MetricsThriftServerSourcename - Method nametime - Timepublic void incCall(long time)
MetricsThriftServerSource
incCall in interface MetricsThriftServerSourcetime - Timepublic void incSlowCall(long time)
MetricsThriftServerSource
incSlowCall in interface MetricsThriftServerSourcetime - Time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||