Package io.dropwizard.metrics.common
Class ScheduledReporterManager
- java.lang.Object
-
- io.dropwizard.metrics.common.ScheduledReporterManager
-
-
Constructor Summary
Constructors Constructor Description ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period)Manages the givenreporterby reporting with the givenperiod.ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop)Manages the givenreporterby reporting with the givenperiod.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Begins reporting metrics using the configuredScheduledReporter.voidstop()Stops the configuredScheduledReporterfrom reporting metrics.
-
-
-
Constructor Detail
-
ScheduledReporterManager
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period)Manages the givenreporterby reporting with the givenperiod.- Parameters:
reporter- the reporter to manage.period- the frequency to report metrics at.- See Also:
ScheduledReporterManager(ScheduledReporter, Duration, boolean)
-
ScheduledReporterManager
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop)Manages the givenreporterby reporting with the givenperiod.- Parameters:
reporter- the reporter to manage.period- the frequency to report metrics at.reportOnStop- whether the reporter should send one last report upon stopping- Since:
- 2.0
-
-
Method Detail
-
start
public void start() throws ExceptionBegins reporting metrics using the configuredScheduledReporter.
-
-