public class RegexFilter extends Object implements StormMetricsFilter
Constructor and Description |
---|
RegexFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String name,
com.codahale.metrics.Metric metric) |
void |
prepare(Map<String,Object> config)
Called after the filter is instantiated.
|
public void prepare(Map<String,Object> config)
StormMetricsFilter
Called after the filter is instantiated.
prepare
in interface StormMetricsFilter
config
- A map of the properties from the ‘filter’ section of the reporter configuration.public boolean matches(String name, com.codahale.metrics.Metric metric)
matches
in interface com.codahale.metrics.MetricFilter
Copyright © 2020 The Apache Software Foundation. All rights reserved.