public class ThriftMetrics extends Object implements org.apache.hadoop.metrics.Updater
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_NAME |
static long |
DEFAULT_SLOW_RESPONSE_NANO_SEC |
static org.apache.commons.logging.Log |
LOG |
static String |
SLOW_RESPONSE_NANO_SEC |
Constructor and Description |
---|
ThriftMetrics(int port,
org.apache.hadoop.conf.Configuration conf,
Class<?> iface) |
Modifier and Type | Method and Description |
---|---|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext context)
Push the metrics to the monitoring subsystem on doUpdate() call.
|
void |
incMethodTime(String name,
int time) |
void |
incNumRowKeysInBatchGet(int diff) |
void |
incNumRowKeysInBatchMutate(int diff) |
void |
incTimeInQueue(long time) |
void |
setCallQueueLen(int len) |
public static final org.apache.commons.logging.Log LOG
public static final String CONTEXT_NAME
public static final String SLOW_RESPONSE_NANO_SEC
public static final long DEFAULT_SLOW_RESPONSE_NANO_SEC
public ThriftMetrics(int port, org.apache.hadoop.conf.Configuration conf, Class<?> iface)
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, int time)
public void doUpdates(org.apache.hadoop.metrics.MetricsContext context)
doUpdates
in interface org.apache.hadoop.metrics.Updater
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.