T
- public interface MetricProcessor<T>
Modifier and Type | Method and Description |
---|---|
void |
processCounter(MetricName name,
Counter counter,
T context)
Process the given counter.
|
void |
processGauge(MetricName name,
Gauge<?> gauge,
T context)
Process the given gauge.
|
void |
processHistogram(MetricName name,
Histogram histogram,
T context)
Process the given histogram.
|
void |
processMeter(MetricName name,
Metered meter,
T context)
Process the given
Metered instance. |
void |
processTimer(MetricName name,
Timer timer,
T context)
Process the given timer.
|
void processMeter(MetricName name, Metered meter, T context) throws Exception
Metered
instance.name
- the name of the metermeter
- the metercontext
- the context of the meterException
- if something goes wrongvoid processCounter(MetricName name, Counter counter, T context) throws Exception
name
- the name of the countercounter
- the countercontext
- the context of the meterException
- if something goes wrongvoid processHistogram(MetricName name, Histogram histogram, T context) throws Exception
name
- the name of the histogramhistogram
- the histogramcontext
- the context of the meterException
- if something goes wrongvoid processTimer(MetricName name, Timer timer, T context) throws Exception
name
- the name of the timertimer
- the timercontext
- the context of the meterException
- if something goes wrongvoid processGauge(MetricName name, Gauge<?> gauge, T context) throws Exception
name
- the name of the gaugegauge
- the gaugecontext
- the context of the meterException
- if something goes wrongCopyright © 2014. All Rights Reserved.