com.yammer.metrics.reporting
Class AbstractReporter

java.lang.Object
  extended by com.yammer.metrics.reporting.AbstractReporter
Direct Known Subclasses:
AbstractPollingReporter, JmxReporter

public abstract class AbstractReporter
extends Object

The base class for all metric reporters.


Constructor Summary
protected AbstractReporter(MetricsRegistry registry)
          Creates a new AbstractReporter instance.
 
Method Summary
protected  MetricsRegistry getMetricsRegistry()
          Returns the reporter's MetricsRegistry.
 void shutdown()
          Stops the reporter and closes any internal resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReporter

protected AbstractReporter(MetricsRegistry registry)
Creates a new AbstractReporter instance.

Parameters:
registry - the MetricsRegistry containing the metrics this reporter will report
Method Detail

shutdown

public void shutdown()
Stops the reporter and closes any internal resources.


getMetricsRegistry

protected MetricsRegistry getMetricsRegistry()
Returns the reporter's MetricsRegistry.

Returns:
the reporter's MetricsRegistry


Copyright © 2012. All Rights Reserved.