Class ConsoleReporterFactory

All Implemented Interfaces:
Discoverable, ReporterFactory

public class ConsoleReporterFactory extends BaseFormattedReporterFactory
A factory for configuring and building ConsoleReporter instances.

Configuration Parameters:

Name Default Description
timeZone UTC The timezone to display dates/times for.
output stdout The stream to write to. One of stdout or stderr.
See BaseFormattedReporterFactory for more options.
See BaseReporterFactory for more options.
  • Constructor Details

    • ConsoleReporterFactory

      public ConsoleReporterFactory()
  • Method Details

    • getTimeZone

      public TimeZone getTimeZone()
    • setTimeZone

      public void setTimeZone(TimeZone timeZone)
    • getOutput

    • setOutput

      public void setOutput(ConsoleReporterFactory.ConsoleStream stream)
    • build

      public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
      Description copied from interface: ReporterFactory
      Configures and builds a ScheduledReporter instance for the given registry.
      Parameters:
      registry - the metrics registry to report metrics from.
      Returns:
      a reporter configured for the given metrics registry.