public abstract class ScheduledReporter extends Object implements Closeable, Reporter
ConsoleReporter,
CsvReporter,
Slf4jReporter| 限定符和类型 | 方法和说明 |
|---|---|
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(SortedMap<String,Gauge> gauges,
SortedMap<String,Counter> counters,
SortedMap<String,Histogram> histograms,
SortedMap<String,Meter> meters,
SortedMap<String,Timer> timers)
Called periodically by the polling thread.
|
void |
start(long initialDelay,
long period,
TimeUnit unit)
Starts the reporter polling at the given period.
|
void |
start(long period,
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,
TimeUnit unit)
period - the amount of time between pollsunit - the unit for periodpublic void start(long initialDelay,
long period,
TimeUnit unit)
initialDelay - the time to delay the first executionperiod - the amount of time between pollsunit - the unit for periodpublic void stop()
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic void report()
public abstract void report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<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 registryCopyright © 2020. All rights reserved.