@InterfaceAudience.Private public class ThriftMetrics extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ThriftMetrics.ThriftServerType |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_SLOW_RESPONSE_NANO_SEC |
static String |
SLOW_RESPONSE_NANO_SEC |
Constructor and Description |
---|
ThriftMetrics(org.apache.hadoop.conf.Configuration conf,
ThriftMetrics.ThriftServerType t) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String SLOW_RESPONSE_NANO_SEC
public static final long DEFAULT_SLOW_RESPONSE_NANO_SEC
public ThriftMetrics(org.apache.hadoop.conf.Configuration conf, ThriftMetrics.ThriftServerType t)
public MetricsThriftServerSource getSource()
public void setSource(MetricsThriftServerSource source)
public void incTimeInQueue(long time)
public void setCallQueueLen(int len)
public void incNumRowKeysInBatchGet(int diff)
public void incNumRowKeysInBatchMutate(int diff)
public void incMethodTime(String name, long time)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.