Package fr.gouv.vitam.common.metrics
Class LogbackReporter
- java.lang.Object
-
- com.codahale.metrics.ScheduledReporter
-
- fr.gouv.vitam.common.metrics.LogbackReporter
-
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,java.io.Closeable
,java.lang.AutoCloseable
public class LogbackReporter extends com.codahale.metrics.ScheduledReporter
A reporter which outputs measurements to aPrintStream
, likeSystem.out
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogbackReporter.Builder
A builder forConsoleReporter
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogbackReporter.Builder
forRegistry(com.codahale.metrics.MetricRegistry registry)
Returns a newLogbackReporter.Builder
forConsoleReporter
.void
report(java.util.SortedMap<java.lang.String,com.codahale.metrics.Gauge> gauges, java.util.SortedMap<java.lang.String,com.codahale.metrics.Counter> counters, java.util.SortedMap<java.lang.String,com.codahale.metrics.Histogram> histograms, java.util.SortedMap<java.lang.String,com.codahale.metrics.Meter> meters, java.util.SortedMap<java.lang.String,com.codahale.metrics.Timer> timers)
-
-
-
Method Detail
-
forRegistry
public static LogbackReporter.Builder forRegistry(com.codahale.metrics.MetricRegistry registry)
Returns a newLogbackReporter.Builder
forConsoleReporter
.- Parameters:
registry
- the registry to report- Returns:
- a
LogbackReporter.Builder
instance for aConsoleReporter
-
report
public void report(java.util.SortedMap<java.lang.String,com.codahale.metrics.Gauge> gauges, java.util.SortedMap<java.lang.String,com.codahale.metrics.Counter> counters, java.util.SortedMap<java.lang.String,com.codahale.metrics.Histogram> histograms, java.util.SortedMap<java.lang.String,com.codahale.metrics.Meter> meters, java.util.SortedMap<java.lang.String,com.codahale.metrics.Timer> timers)
- Specified by:
report
in classcom.codahale.metrics.ScheduledReporter
-
-