Class MetricsFileReporter
java.lang.Object
com.codahale.metrics.ScheduledReporter
org.opendaylight.serviceutils.metrics.internal.MetricsFileReporter
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,Closeable
,AutoCloseable
public class MetricsFileReporter
extends com.codahale.metrics.ScheduledReporter
-
Constructor Summary
ConstructorDescriptionMetricsFileReporter
(com.codahale.metrics.MetricRegistry registry, Duration interval) -
Method Summary
Modifier and TypeMethodDescriptioncreateFile
(int dayOfTheWeek, int hourOfTheDay) void
report
(PrintWriter pw) void
report
(SortedMap<String, com.codahale.metrics.Gauge> gauges, SortedMap<String, com.codahale.metrics.Counter> counters, SortedMap<String, com.codahale.metrics.Histogram> histograms, SortedMap<String, com.codahale.metrics.Meter> meters, SortedMap<String, com.codahale.metrics.Timer> timers) void
Methods inherited from class com.codahale.metrics.ScheduledReporter
close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, getScheduledFuture, getScheduledFuture, isShutdownExecutorOnStop, report, start, start, stop
-
Constructor Details
-
MetricsFileReporter
-
-
Method Details
-
startReporter
public void startReporter() -
report
-
report
public void report(SortedMap<String, com.codahale.metrics.Gauge> gauges, SortedMap<String, com.codahale.metrics.Counter> counters, SortedMap<String, com.codahale.metrics.Histogram> histograms, SortedMap<String, com.codahale.metrics.Meter> meters, SortedMap<String, com.codahale.metrics.Timer> timers) - Specified by:
report
in classcom.codahale.metrics.ScheduledReporter
-
createFile
- Throws:
IOException
-