com.yammer.metrics.reporting
Class AbstractPollingReporter

java.lang.Object
  extended by com.yammer.metrics.reporting.AbstractReporter
      extended by com.yammer.metrics.reporting.AbstractPollingReporter
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ConsoleReporter, CsvReporter

public abstract class AbstractPollingReporter
extends AbstractReporter
implements Runnable


Field Summary
 
Fields inherited from class com.yammer.metrics.reporting.AbstractReporter
metricsRegistry
 
Constructor Summary
protected AbstractPollingReporter(MetricsRegistry registry, String name)
           
 
Method Summary
 void shutdown()
          Stops the reporter and closes any internal resources.
 void shutdown(long waitTime, TimeUnit waitTimeMillis)
           
 void start(long pollingTime, TimeUnit pollingTimeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

AbstractPollingReporter

protected AbstractPollingReporter(MetricsRegistry registry,
                                  String name)
Method Detail

start

public void start(long pollingTime,
                  TimeUnit pollingTimeUnit)

shutdown

public void shutdown(long waitTime,
                     TimeUnit waitTimeMillis)
              throws InterruptedException
Throws:
InterruptedException

shutdown

public void shutdown()
Description copied from class: AbstractReporter
Stops the reporter and closes any internal resources.

Overrides:
shutdown in class AbstractReporter


Copyright © 2011. All Rights Reserved.