Package ratpack.dropwizard.metrics
Class ConsoleConfig
- java.lang.Object
-
- ratpack.dropwizard.metrics.ReporterConfigSupport<T>
-
- ratpack.dropwizard.metrics.ScheduledReporterConfigSupport<ConsoleConfig>
-
- ratpack.dropwizard.metrics.ConsoleConfig
-
public class ConsoleConfig extends ScheduledReporterConfigSupport<ConsoleConfig>
-
-
Constructor Summary
Constructors Constructor Description ConsoleConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleConfigenable(boolean enabled)Set the state of the Console publisher.booleanisEnabled()The state of the Console publisher.-
Methods inherited from class ratpack.dropwizard.metrics.ScheduledReporterConfigSupport
getReporterInterval, reporterInterval
-
Methods inherited from class ratpack.dropwizard.metrics.ReporterConfigSupport
excludeFilter, getExcludeFilter, getIncludeFilter, includeFilter
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
The state of the Console publisher.- Returns:
- the state of the Console publisher
-
enable
public ConsoleConfig enable(boolean enabled)
Set the state of the Console publisher.- Parameters:
enabled- True if metrics are published to the console. False otherwise- Returns:
this
-
-