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 givenreporter
by reporting with the givenperiod
.ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop)
Manages the givenreporter
by reporting with the givenperiod
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
Begins reporting metrics using the configuredScheduledReporter
.void
stop()
Stops the configuredScheduledReporter
from reporting metrics.
-
-
-
Constructor Detail
-
ScheduledReporterManager
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period)
Manages the givenreporter
by 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 givenreporter
by 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 Exception
Begins reporting metrics using the configuredScheduledReporter
.
-
-