Package ratpack.dropwizard.metrics
Class ReporterConfigSupport<T extends ReporterConfigSupport<T>>
- java.lang.Object
- 
- ratpack.dropwizard.metrics.ReporterConfigSupport<T>
 
- 
- Type Parameters:
- T- self type
 - Direct Known Subclasses:
- JmxConfig,- ScheduledReporterConfigSupport
 
 public abstract class ReporterConfigSupport<T extends ReporterConfigSupport<T>> extends Object A common base for reporter config classes.- Since:
- 1.4
 
- 
- 
Constructor SummaryConstructors Constructor Description ReporterConfigSupport()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Tenable(boolean enabled)Set the state of the publisher.TexcludeFilter(String excludeFilter)Set the exclude metric filter expression of the reporter.StringgetExcludeFilter()The exclude metric filter expression of the reporter.StringgetIncludeFilter()The include metric filter expression of the reporter.TincludeFilter(String includeFilter)Set the include metric filter of the reporter.booleanisEnabled()The state of the publisher.
 
- 
- 
- 
Method Detail- 
getIncludeFilterpublic String getIncludeFilter() The include metric filter expression of the reporter.- Returns:
- the include filter
 
 - 
includeFilterpublic T includeFilter(String includeFilter) Set the include metric filter of the reporter.- Parameters:
- includeFilter- the regular expression to match on.
- Returns:
- this
 
 - 
getExcludeFilterpublic String getExcludeFilter() The exclude metric filter expression of the reporter.- Returns:
- the exclude filter
 
 - 
excludeFilterpublic T excludeFilter(String excludeFilter) Set the exclude metric filter expression of the reporter.- Parameters:
- excludeFilter- the regular expression to match on.
- Returns:
- this
 
 - 
isEnabledpublic boolean isEnabled() The state of the publisher.True by default if the reporter configuration is specified. - Returns:
- the state of the publisher
 
 - 
enablepublic T enable(boolean enabled) Set the state of the publisher.- Parameters:
- enabled- True if metrics are published to this publisher. False otherwise
- Returns:
- this
 
 
- 
 
-