@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
|
accepts
protected 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)
MetricsPlugin
conf
- the configuration object for the pluginpublic boolean accepts(MetricsTag tag)
MetricsFilter
accepts
in class MetricsFilter
tag
- to filter onpublic boolean accepts(Iterable<MetricsTag> tags)
MetricsFilter
accepts
in class MetricsFilter
tags
- to filter onpublic boolean accepts(String name)
MetricsFilter
accepts
in class MetricsFilter
name
- to filter onCopyright © 2013 Apache Software Foundation. All rights reserved.