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
Constructors Constructor Description MetricsFileReporter(com.codahale.metrics.MetricRegistry registry, Duration interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
createFile(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
startReporter()
-
-
-
Constructor Detail
-
MetricsFileReporter
public MetricsFileReporter(com.codahale.metrics.MetricRegistry registry, Duration interval)
-
-
Method Detail
-
startReporter
public void startReporter()
-
report
public void report(PrintWriter pw)
-
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
public File createFile(int dayOfTheWeek, int hourOfTheDay) throws IOException
- Throws:
IOException
-
-