|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MetricsThriftServerSource
Inteface of a class that will export metrics about Thrift to hadoop's metrics2.
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
|---|
HBASE_METRICS_SYSTEM_NAME |
| 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 |
setCallQueueLen(int len)
Set the call queue length. |
| Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
|---|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile |
| Field Detail |
|---|
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
| Method Detail |
|---|
void incTimeInQueue(long time)
time - void setCallQueueLen(int len)
len - Timevoid incNumRowKeysInBatchGet(int diff)
diff - Num Keysvoid incNumRowKeysInBatchMutate(int diff)
diff - Num Keys
void incMethodTime(String name,
long time)
name - Method nametime - Timevoid incCall(long time)
time - Timevoid incSlowCall(long time)
time - Time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||