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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
private static final org.slf4j.Logger
static final String
protected final long
protected MetricsThriftServerSource
private final ThriftMetrics.ThriftServerType
-
Constructor Summary
ConstructorDescriptionThriftMetrics
(org.apache.hadoop.conf.Configuration conf, ThriftMetrics.ThriftServerType t) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Increment the count for a specific exception type.void
void
incMethodTime
(String name, long time) void
incNumRowKeysInBatchGet
(int diff) void
incNumRowKeysInBatchMutate
(int diff) void
incTimeInQueue
(long time) void
setCallQueueLen
(int len) void
setSource
(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
-