com.espertech.esper.metrics.codahale_metrics.metrics.core
Interface MetricProcessor<T>

Type Parameters:
T -
All Known Implementing Classes:
ConsoleReporter, CsvReporter, JmxReporter

public interface MetricProcessor<T>

A processor of metric instances.


Method Summary
 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.
 

Method Detail

processMeter

void processMeter(MetricName name,
                  Metered meter,
                  T context)
                  throws java.lang.Exception
Process the given Metered instance.

Parameters:
name - the name of the meter
meter - the meter
context - the context of the meter
Throws:
java.lang.Exception - if something goes wrong

processCounter

void processCounter(MetricName name,
                    Counter counter,
                    T context)
                    throws java.lang.Exception
Process the given counter.

Parameters:
name - the name of the counter
counter - the counter
context - the context of the meter
Throws:
java.lang.Exception - if something goes wrong

processHistogram

void processHistogram(MetricName name,
                      Histogram histogram,
                      T context)
                      throws java.lang.Exception
Process the given histogram.

Parameters:
name - the name of the histogram
histogram - the histogram
context - the context of the meter
Throws:
java.lang.Exception - if something goes wrong

processTimer

void processTimer(MetricName name,
                  Timer timer,
                  T context)
                  throws java.lang.Exception
Process the given timer.

Parameters:
name - the name of the timer
timer - the timer
context - the context of the meter
Throws:
java.lang.Exception - if something goes wrong

processGauge

void processGauge(MetricName name,
                  Gauge<?> gauge,
                  T context)
                  throws java.lang.Exception
Process the given gauge.

Parameters:
name - the name of the gauge
gauge - the gauge
context - the context of the meter
Throws:
java.lang.Exception - if something goes wrong

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com