Constructor and Description |
---|
ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter,
Duration period)
Manages the given
reporter by reporting with the given period . |
ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter,
Duration period,
boolean reportOnStop)
Manages the given
reporter by reporting with the given period . |
Modifier and Type | Method and Description |
---|---|
void |
start()
Begins reporting metrics using the configured
ScheduledReporter . |
void |
stop()
Stops the configured
ScheduledReporter from reporting metrics. |
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period)
reporter
by reporting with the given period
.reporter
- the reporter to manage.period
- the frequency to report metrics at.ScheduledReporterManager(ScheduledReporter, Duration, boolean)
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop)
reporter
by reporting with the given period
.reporter
- the reporter to manage.period
- the frequency to report metrics at.reportOnStop
- whether the reporter should send one last report upon stoppingpublic void start() throws Exception
ScheduledReporter
.Copyright © 2019. All rights reserved.