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, toString
public void gauge(String metricName, int value, String... tags)
MetricsCollector
gauge
in interface MetricsCollector
public void rate(String metricName)
MetricsCollector
rate
in interface MetricsCollector
public void rate(String metricName, int count)
MetricsCollector
rate
in interface MetricsCollector
public void histogram(String metricName, int value)
MetricsCollector
histogram
in interface MetricsCollector
public void configure(org.apache.hadoop.conf.Configuration conf)
MetricsCollector
configure
in interface MetricsCollector
protected void startUp() throws Exception
startUp
in class com.google.common.util.concurrent.AbstractIdleService
Exception
Copyright © 2016 The Apache Software Foundation. All rights reserved.