org.apache.hadoop.hbase.thrift
Class ThriftMetrics
java.lang.Object
org.apache.hadoop.hbase.thrift.ThriftMetrics
@InterfaceAudience.Private
public class ThriftMetrics
- extends Object
This class is for maintaining the various statistics of thrift server
and publishing them through the metrics interfaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(org.apache.hadoop.conf.Configuration conf,
ThriftMetrics.ThriftServerType t)
getSource
public MetricsThriftServerSource getSource()
setSource
public void setSource(MetricsThriftServerSource source)
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,
long time)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.