public class TxMetricsCollector extends com.google.common.util.concurrent.AbstractIdleService implements MetricsCollector
| Constructor and Description |
|---|
TxMetricsCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.conf.Configuration conf)
Called before the collector service is started, allowing the collector to setup any
required configuration.
|
void |
gauge(String metricName,
int value,
String... tags)
Report a metric as an absolute value.
|
void |
histogram(String metricName,
int value)
Report a metric calculating the distribution of the value.
|
void |
rate(String metricName)
Report a metric as a count over a given time duration.
|
void |
rate(String metricName,
int count)
Report a metric as a count over a given time duration.
|
protected void |
shutDown() |
protected void |
startUp() |
addListener, executor, isRunning, start, startAndWait, state, stop, stopAndWait, toStringpublic void gauge(String metricName, int value, String... tags)
MetricsCollectorgauge in interface MetricsCollectorpublic void rate(String metricName)
MetricsCollectorrate in interface MetricsCollectorpublic void rate(String metricName, int count)
MetricsCollectorrate in interface MetricsCollectorpublic void histogram(String metricName, int value)
MetricsCollectorhistogram in interface MetricsCollectorpublic void configure(org.apache.hadoop.conf.Configuration conf)
MetricsCollectorconfigure in interface MetricsCollectorprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.