Package io.dropwizard.metrics.common
Class ConsoleReporterFactory
- java.lang.Object
-
- io.dropwizard.metrics.common.BaseReporterFactory
-
- io.dropwizard.metrics.common.BaseFormattedReporterFactory
-
- io.dropwizard.metrics.common.ConsoleReporterFactory
-
- All Implemented Interfaces:
Discoverable,ReporterFactory
public class ConsoleReporterFactory extends BaseFormattedReporterFactory
A factory for configuring and buildingConsoleReporterinstances. Configuration Parameters:Name Default Description timeZone UTC The timezone to display dates/times for. output stdout The stream to write to. One of stdoutorstderr.See BaseFormattedReporterFactoryfor more options.See BaseReporterFactoryfor more options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsoleReporterFactory.ConsoleStream
-
Constructor Summary
Constructors Constructor Description ConsoleReporterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.ScheduledReporterbuild(com.codahale.metrics.MetricRegistry registry)Configures and builds aScheduledReporterinstance for the given registry.ConsoleReporterFactory.ConsoleStreamgetOutput()TimeZonegetTimeZone()voidsetOutput(ConsoleReporterFactory.ConsoleStream stream)voidsetTimeZone(TimeZone timeZone)-
Methods inherited from class io.dropwizard.metrics.common.BaseFormattedReporterFactory
getLocale, setLocale
-
Methods inherited from class io.dropwizard.metrics.common.BaseReporterFactory
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatching
-
-
-
-
Method Detail
-
getTimeZone
public TimeZone getTimeZone()
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
-
getOutput
public ConsoleReporterFactory.ConsoleStream getOutput()
-
setOutput
public void setOutput(ConsoleReporterFactory.ConsoleStream stream)
-
build
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
Description copied from interface:ReporterFactoryConfigures and builds aScheduledReporterinstance for the given registry.- Parameters:
registry- the metrics registry to report metrics from.- Returns:
- a reporter configured for the given metrics registry.
-
-