Class ReporterConfigSupport<T extends 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 Detail

      • ReporterConfigSupport

        public ReporterConfigSupport()
    • Method Detail

      • getIncludeFilter

        public String getIncludeFilter()
        The include metric filter expression of the reporter.
        Returns:
        the include filter
      • includeFilter

        public T includeFilter​(String includeFilter)
        Set the include metric filter of the reporter.
        Parameters:
        includeFilter - the regular expression to match on.
        Returns:
        this
      • getExcludeFilter

        public String getExcludeFilter()
        The exclude metric filter expression of the reporter.
        Returns:
        the exclude filter
      • excludeFilter

        public T excludeFilter​(String excludeFilter)
        Set the exclude metric filter expression of the reporter.
        Parameters:
        excludeFilter - the regular expression to match on.
        Returns:
        this
      • isEnabled

        public boolean isEnabled()
        The state of the publisher.

        True by default if the reporter configuration is specified.

        Returns:
        the state of the publisher
      • enable

        public T enable​(boolean enabled)
        Set the state of the publisher.
        Parameters:
        enabled - True if metrics are published to this publisher. False otherwise
        Returns:
        this