@InterfaceAudience.Private public abstract class AbstractPatternFilter extends MetricsFilter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EXCLUDE_KEY |
protected static String |
EXCLUDE_TAGS_KEY |
protected static String |
INCLUDE_KEY |
protected static String |
INCLUDE_TAGS_KEY |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Iterable<MetricsTag> tags)
Whether to accept the tags
|
boolean |
accepts(MetricsTag tag)
Whether to accept the tag
|
boolean |
accepts(String name)
Whether to accept the name
|
protected abstract Pattern |
compile(String s)
Compile a string pattern in to a pattern object
|
void |
init(org.apache.commons.configuration.SubsetConfiguration conf)
Initialize the plugin
|
acceptsprotected static final String INCLUDE_KEY
protected static final String EXCLUDE_KEY
protected static final String INCLUDE_TAGS_KEY
protected static final String EXCLUDE_TAGS_KEY
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPluginconf - the configuration object for the pluginpublic boolean accepts(MetricsTag tag)
MetricsFilteraccepts in class MetricsFiltertag - to filter onpublic boolean accepts(Iterable<MetricsTag> tags)
MetricsFilteraccepts in class MetricsFiltertags - to filter onpublic boolean accepts(String name)
MetricsFilteraccepts in class MetricsFiltername - to filter onCopyright © 2013 Apache Software Foundation. All rights reserved.