|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.metrics.codahale_metrics.metrics.reporting.AbstractReporter
com.espertech.esper.metrics.codahale_metrics.metrics.reporting.AbstractPollingReporter
public abstract class AbstractPollingReporter
An abstract base class for all reporter implementations which periodically poll registered metrics (e.g., to send the data to another service).
Constructor Summary | |
---|---|
protected |
AbstractPollingReporter(MetricsRegistry registry,
java.lang.String name)
Creates a new AbstractPollingReporter instance. |
Method Summary | |
---|---|
abstract void |
run()
The method called when a a poll is scheduled to occur. |
void |
shutdown()
Stops the reporter and closes any internal resources. |
void |
shutdown(long timeout,
java.util.concurrent.TimeUnit unit)
Shuts down the reporter polling, waiting the specific amount of time for any current polls to complete. |
void |
start(long period,
java.util.concurrent.TimeUnit unit)
Starts the reporter polling at the given period. |
Methods inherited from class com.espertech.esper.metrics.codahale_metrics.metrics.reporting.AbstractReporter |
---|
getMetricsRegistry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractPollingReporter(MetricsRegistry registry, java.lang.String name)
AbstractPollingReporter
instance.
registry
- the MetricsRegistry
containing the metrics this reporter will
reportname
- the reporter's nameAbstractReporter.AbstractReporter(MetricsRegistry)
Method Detail |
---|
public void start(long period, java.util.concurrent.TimeUnit unit)
period
- the amount of time between pollsunit
- the unit for period
public void shutdown(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
timeout
- the maximum time to waitunit
- the unit for timeout
java.lang.InterruptedException
- if interrupted while waitingpublic void shutdown()
AbstractReporter
shutdown
in class AbstractReporter
public abstract void run()
run
in interface java.lang.Runnable
|
© 2006-2014 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |