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 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.
-
-
-
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 interfaceStormMetricsFilter
- 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 interfacecom.codahale.metrics.MetricFilter
-
-