org.apache.hadoop.hbase.thrift
Class ThriftMetrics
java.lang.Object
org.apache.hadoop.hbase.thrift.ThriftMetrics
- All Implemented Interfaces:
- org.apache.hadoop.metrics.Updater
public class ThriftMetrics
- extends Object
- implements org.apache.hadoop.metrics.Updater
This class is for maintaining the various statistics of thrift server
and publishing them through the metrics interfaces.
Constructor Summary |
ThriftMetrics(int port,
org.apache.hadoop.conf.Configuration conf,
Class<?> iface)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
CONTEXT_NAME
public static final String CONTEXT_NAME
- See Also:
- Constant Field Values
SLOW_RESPONSE_NANO_SEC
public static final String SLOW_RESPONSE_NANO_SEC
- See Also:
- Constant Field Values
DEFAULT_SLOW_RESPONSE_NANO_SEC
public static final long DEFAULT_SLOW_RESPONSE_NANO_SEC
- See Also:
- Constant Field Values
ThriftMetrics
public ThriftMetrics(int port,
org.apache.hadoop.conf.Configuration conf,
Class<?> iface)
incTimeInQueue
public void incTimeInQueue(long time)
setCallQueueLen
public void setCallQueueLen(int len)
incNumRowKeysInBatchGet
public void incNumRowKeysInBatchGet(int diff)
incNumRowKeysInBatchMutate
public void incNumRowKeysInBatchMutate(int diff)
incMethodTime
public void incMethodTime(String name,
int time)
doUpdates
public void doUpdates(org.apache.hadoop.metrics.MetricsContext context)
- Push the metrics to the monitoring subsystem on doUpdate() call.
- Specified by:
doUpdates
in interface org.apache.hadoop.metrics.Updater
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.