public abstract class ScheduledReporter extends java.lang.Object implements java.io.Closeable, Reporter
ConsoleReporter
,
CsvReporter
,
Slf4jReporter
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops the reporter and shuts down its thread of execution.
|
void |
report()
Report the current values of all metrics in the registry.
|
abstract void |
report(java.util.SortedMap<java.lang.String,Gauge> gauges,
java.util.SortedMap<java.lang.String,Counter> counters,
java.util.SortedMap<java.lang.String,Histogram> histograms,
java.util.SortedMap<java.lang.String,Meter> meters,
java.util.SortedMap<java.lang.String,Timer> timers)
Called periodically by the polling thread.
|
void |
start(long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
Starts the reporter polling at the given period.
|
void |
start(long period,
java.util.concurrent.TimeUnit unit)
Starts the reporter polling at the given period.
|
void |
stop()
Stops the reporter and if shutdownExecutorOnStop is true then shuts down its thread of execution.
|
public void start(long period, java.util.concurrent.TimeUnit unit)
period
- the amount of time between pollsunit
- the unit for period
public void start(long initialDelay, long period, java.util.concurrent.TimeUnit unit)
initialDelay
- the time to delay the first executionperiod
- the amount of time between pollsunit
- the unit for period
public void stop()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public void report()
public abstract void report(java.util.SortedMap<java.lang.String,Gauge> gauges, java.util.SortedMap<java.lang.String,Counter> counters, java.util.SortedMap<java.lang.String,Histogram> histograms, java.util.SortedMap<java.lang.String,Meter> meters, java.util.SortedMap<java.lang.String,Timer> timers)
gauges
- all of the gauges in the registrycounters
- all of the counters in the registryhistograms
- all of the histograms in the registrymeters
- all of the meters in the registrytimers
- all of the timers in the registry"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"