public interface MetricsThriftServerSource extends BaseSource
Modifier and Type | Field and Description |
---|---|
static String |
BATCH_GET_KEY |
static String |
BATCH_MUTATE_KEY |
static String |
CALL_QUEUE_LEN_KEY |
static String |
SLOW_THRIFT_CALL_KEY |
static String |
THRIFT_CALL_KEY |
static String |
TIME_IN_QUEUE_KEY |
HBASE_METRICS_SYSTEM_NAME
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 |
setCallQueueLen(int len)
Set the call queue length.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
static final String BATCH_GET_KEY
static final String BATCH_MUTATE_KEY
static final String TIME_IN_QUEUE_KEY
static final String THRIFT_CALL_KEY
static final String SLOW_THRIFT_CALL_KEY
static final String CALL_QUEUE_LEN_KEY
void incTimeInQueue(long time)
time
- void setCallQueueLen(int len)
len
- Timevoid incNumRowKeysInBatchGet(int diff)
diff
- Num Keysvoid incNumRowKeysInBatchMutate(int diff)
diff
- Num Keysvoid incMethodTime(String name, long time)
name
- Method nametime
- Timevoid incCall(long time)
time
- Timevoid incSlowCall(long time)
time
- TimeCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.