@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 |
private static org.slf4j.Logger |
LOG |
static String |
SLOW_RESPONSE_NANO_SEC |
protected long |
slowResponseTime |
protected MetricsThriftServerSource |
source |
private ThriftMetrics.ThriftServerType |
thriftServerType |
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() |
ThriftMetrics.ThriftServerType |
getThriftServerType() |
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) |
protected static Throwable |
unwrap(Throwable t) |
private static final org.slf4j.Logger LOG
protected MetricsThriftServerSource source
protected final long slowResponseTime
public static final String SLOW_RESPONSE_NANO_SEC
public static final long DEFAULT_SLOW_RESPONSE_NANO_SEC
private final ThriftMetrics.ThriftServerType thriftServerType
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 exceptionpublic ThriftMetrics.ThriftServerType getThriftServerType()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.