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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields 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_EXCEPTIONSFields 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 TypeMethodDescriptionvoidDecrement number of active thrift workers.voidIncrement number of active thrift workers.voidincCall(long time) Add how long a call tookvoidincMethodTime(String name, long time) Add how long a method tookvoidincNumRowKeysInBatchGet(int diff) Add how many keys were in a batch get.voidincNumRowKeysInBatchMutate(int diff) Add how many keys were in a batch mutate.voidincSlowCall(long time) Increment how long a slow call took.voidincTimeInQueue(long time) Add how long an operation was in the queue.voidsetCallQueueLen(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, updateHistogramMethods inherited from interface org.apache.hadoop.hbase.metrics.ExceptionTrackingSource
callDroppedException, callQueueTooBigException, callTimedOut, exception, failedSanityException, movedRegionException, multiActionTooLargeException, notServingRegionException, otherExceptions, outOfOrderException, quotaExceededException, requestTooBigException, rpcThrottlingException, scannerResetException, tooBusyException, unknownScannerExceptionMethods 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.
-