Package org.apache.hadoop.hbase.thrift
Class ThriftMetrics
java.lang.Object
org.apache.hadoop.hbase.thrift.ThriftMetrics
This class is for maintaining the various statistics of thrift server and publishing them through
the metrics interfaces.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprivate static final org.slf4j.Loggerstatic final Stringprotected final longprotected MetricsThriftServerSourceprivate final ThriftMetrics.ThriftServerType -
Constructor Summary
ConstructorsConstructorDescriptionThriftMetrics(org.apache.hadoop.conf.Configuration conf, ThriftMetrics.ThriftServerType t) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidIncrement the count for a specific exception type.voidvoidincMethodTime(String name, long time) voidincNumRowKeysInBatchGet(int diff) voidincNumRowKeysInBatchMutate(int diff) voidincTimeInQueue(long time) voidsetCallQueueLen(int len) voidsetSource(MetricsThriftServerSource source) protected static Throwable
-
Field Details
-
LOG
-
source
-
slowResponseTime
-
SLOW_RESPONSE_NANO_SEC
- See Also:
-
DEFAULT_SLOW_RESPONSE_NANO_SEC
- See Also:
-
thriftServerType
-
-
Constructor Details
-
ThriftMetrics
-
-
Method Details
-
getSource
-
setSource
-
incTimeInQueue
-
setCallQueueLen
-
incNumRowKeysInBatchGet
-
incNumRowKeysInBatchMutate
-
incMethodTime
-
incActiveWorkerCount
-
decActiveWorkerCount
-
exception
Increment the count for a specific exception type. This is called for each exception type that is returned to the thrift handler.- Parameters:
rawThrowable- type of exception
-
unwrap
-
getThriftServerType
-