Package org.apache.hadoop.hbase.thrift
Interface MetricsThriftServerSource
- All Superinterfaces:
BaseSource
,ExceptionTrackingSource
,JvmPauseMonitorSource
- All Known Implementing Classes:
MetricsThriftServerSourceImpl
@Private
public interface MetricsThriftServerSource
extends ExceptionTrackingSource, JvmPauseMonitorSource
Interface of a class that will export metrics about Thrift to hadoop's metrics2.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields inherited from interface org.apache.hadoop.hbase.metrics.ExceptionTrackingSource
EXCEPTIONS_BUSY_NAME, EXCEPTIONS_CALL_DROPPED, EXCEPTIONS_CALL_QUEUE_TOO_BIG, EXCEPTIONS_CALL_QUEUE_TOO_BIG_DESC, EXCEPTIONS_CALL_TIMED_OUT, EXCEPTIONS_DESC, EXCEPTIONS_MOVED_NAME, EXCEPTIONS_MULTI_TOO_LARGE_DESC, EXCEPTIONS_MULTI_TOO_LARGE_NAME, EXCEPTIONS_NAME, EXCEPTIONS_NSRE_NAME, EXCEPTIONS_OOO_NAME, EXCEPTIONS_QUOTA_EXCEEDED, EXCEPTIONS_REQUEST_TOO_BIG, EXCEPTIONS_RPC_THROTTLING, EXCEPTIONS_SANITY_NAME, EXCEPTIONS_SCANNER_RESET_NAME, EXCEPTIONS_TYPE_DESC, EXCEPTIONS_UNKNOWN_NAME, OTHER_EXCEPTIONS
Fields inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource
INFO_THRESHOLD_COUNT_DESC, INFO_THRESHOLD_COUNT_KEY, PAUSE_TIME_WITH_GC_DESC, PAUSE_TIME_WITH_GC_KEY, PAUSE_TIME_WITHOUT_GC_DESC, PAUSE_TIME_WITHOUT_GC_KEY, WARN_THRESHOLD_COUNT_DESC, WARN_THRESHOLD_COUNT_KEY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Decrement number of active thrift workers.void
Increment number of active thrift workers.void
incCall
(long time) Add how long a call tookvoid
incMethodTime
(String name, long time) Add how long a method tookvoid
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, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
Methods inherited from interface org.apache.hadoop.hbase.metrics.ExceptionTrackingSource
callDroppedException, callQueueTooBigException, callTimedOut, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, otherExceptions, outOfOrderException, quotaExceededException, requestTooBigException, rpcThrottlingException, scannerResetException, tooBusyException, unknownScannerException
Methods inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource
incInfoThresholdExceeded, incWarnThresholdExceeded, updatePauseTimeWithGc, updatePauseTimeWithoutGc
-
Field Details
-
BATCH_GET_KEY
- See Also:
-
BATCH_MUTATE_KEY
- See Also:
-
TIME_IN_QUEUE_KEY
- See Also:
-
THRIFT_CALL_KEY
- See Also:
-
SLOW_THRIFT_CALL_KEY
- See Also:
-
CALL_QUEUE_LEN_KEY
- See Also:
-
ACTIVE_WORKER_COUNT_KEY
- See Also:
-
-
Method Details
-
incTimeInQueue
Add how long an operation was in the queue. -
setCallQueueLen
Set the call queue length.- Parameters:
len
- Time
-
incNumRowKeysInBatchGet
Add how many keys were in a batch get.- Parameters:
diff
- Num Keys
-
incNumRowKeysInBatchMutate
Add how many keys were in a batch mutate.- Parameters:
diff
- Num Keys
-
incMethodTime
Add how long a method took- Parameters:
name
- Method nametime
- Time
-
incCall
Add how long a call took- Parameters:
time
- Time
-
incSlowCall
Increment how long a slow call took.- Parameters:
time
- Time
-
incActiveWorkerCount
void incActiveWorkerCount()Increment number of active thrift workers. -
decActiveWorkerCount
void decActiveWorkerCount()Decrement number of active thrift workers.
-