Class RegexFilter

java.lang.Object
org.apache.storm.metrics2.filters.RegexFilter
All Implemented Interfaces:
com.codahale.metrics.MetricFilter, StormMetricsFilter

public class RegexFilter extends Object implements StormMetricsFilter
  • Constructor Details

    • RegexFilter

      public RegexFilter()
  • Method Details

    • prepare

      public void prepare(Map<String,Object> config)
      Description copied from interface: StormMetricsFilter
      Called after the filter is instantiated.
      Specified by:
      prepare in interface StormMetricsFilter
      Parameters:
      config - A map of the properties from the 'filter' section of the reporter configuration.
    • matches

      public boolean matches(String name, com.codahale.metrics.Metric metric)
      Specified by:
      matches in interface com.codahale.metrics.MetricFilter