org.apache.hadoop.hbase.thrift
Interface MetricsThriftServerSource

All Superinterfaces:
BaseSource
All Known Implementing Classes:
MetricsThriftServerSourceImpl

public interface MetricsThriftServerSource
extends BaseSource

Interface 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

BATCH_GET_KEY

static final String BATCH_GET_KEY
See Also:
Constant Field Values

BATCH_MUTATE_KEY

static final String BATCH_MUTATE_KEY
See Also:
Constant Field Values

TIME_IN_QUEUE_KEY

static final String TIME_IN_QUEUE_KEY
See Also:
Constant Field Values

THRIFT_CALL_KEY

static final String THRIFT_CALL_KEY
See Also:
Constant Field Values

SLOW_THRIFT_CALL_KEY

static final String SLOW_THRIFT_CALL_KEY
See Also:
Constant Field Values

CALL_QUEUE_LEN_KEY

static final String CALL_QUEUE_LEN_KEY
See Also:
Constant Field Values
Method Detail

incTimeInQueue

void incTimeInQueue(long time)
Add how long an operation was in the queue.

Parameters:
time -

setCallQueueLen

void setCallQueueLen(int len)
Set the call queue length.

Parameters:
len - Time

incNumRowKeysInBatchGet

void incNumRowKeysInBatchGet(int diff)
Add how many keys were in a batch get.

Parameters:
diff - Num Keys

incNumRowKeysInBatchMutate

void incNumRowKeysInBatchMutate(int diff)
Add how many keys were in a batch mutate.

Parameters:
diff - Num Keys

incMethodTime

void incMethodTime(String name,
                   long time)
Add how long a method took

Parameters:
name - Method name
time - Time

incCall

void incCall(long time)
Add how long a call took

Parameters:
time - Time

incSlowCall

void incSlowCall(long time)
Increment how long a slow call took.

Parameters:
time - Time


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.