@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 |
---|---|
void |
decActiveWorkerCount() |
void |
exception(Throwable rawThrowable)
Increment the count for a specific exception type.
|
MetricsThriftServerSource |
getSource() |
void |
incActiveWorkerCount() |
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)
public void incActiveWorkerCount()
public void decActiveWorkerCount()
public void exception(Throwable rawThrowable)
rawThrowable
- type of exceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.