org.apache.hadoop.hbase.thrift
Class ThriftMetrics

java.lang.Object
  extended by 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.


Nested Class Summary
static class ThriftMetrics.ThriftServerType
           
 
Field Summary
static long DEFAULT_SLOW_RESPONSE_NANO_SEC
           
static String SLOW_RESPONSE_NANO_SEC
           
 
Constructor Summary
ThriftMetrics(org.apache.hadoop.conf.Configuration conf, ThriftMetrics.ThriftServerType t)
           
 
Method Summary
 MetricsThriftServerSource getSource()
           
 void incMethodTime(String name, long time)
           
 void incNumRowKeysInBatchGet(int diff)
           
 void incNumRowKeysInBatchMutate(int diff)
           
 void incTimeInQueue(long time)
           
 void setCallQueueLen(int len)
           
 void setSource(MetricsThriftServerSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ThriftMetrics

public ThriftMetrics(org.apache.hadoop.conf.Configuration conf,
                     ThriftMetrics.ThriftServerType t)
Method Detail

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 © 2007–2015 The Apache Software Foundation. All rights reserved.