Package org.apache.storm.metrics2.filters

## 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

- - ### Field Summary

    - ### Fields inherited from interface com.codahale.metrics.MetricFilter

      `ALL`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RegexFilter()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `matches​(String name, com.codahale.metrics.Metric metric)` |
    `void` | `prepare​(Map<String,​Object> config)` | Called after the filter is instantiated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RegexFilter

          public RegexFilter()

  - ### Method Detail

    - #### 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`