|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.MetricsFilter org.apache.hadoop.metrics2.filter.RegexFilter
public class RegexFilter
A regex pattern filter for metrics
Field Summary | |
---|---|
protected static String |
EXCLUDE_KEY
|
protected static String |
EXCLUDE_TAGS_KEY
|
protected static String |
INCLUDE_KEY
|
protected static String |
INCLUDE_TAGS_KEY
|
Constructor Summary | |
---|---|
RegexFilter()
|
Method Summary | |
---|---|
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 Pattern |
compile(String s)
Compile a string pattern in to a pattern object |
void |
init(org.apache.commons.configuration.SubsetConfiguration conf)
Initialize the plugin |
Methods inherited from class org.apache.hadoop.metrics2.MetricsFilter |
---|
accepts |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public RegexFilter()
Method Detail |
---|
protected Pattern compile(String s)
s
- the string pattern to compile
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init
in interface MetricsPlugin
init
in class MetricsFilter
conf
- the configuration object for the pluginpublic boolean accepts(MetricsTag tag)
MetricsFilter
accepts
in class MetricsFilter
tag
- to filter on
public boolean accepts(Iterable<MetricsTag> tags)
MetricsFilter
accepts
in class MetricsFilter
tags
- to filter on
public boolean accepts(String name)
MetricsFilter
accepts
in class MetricsFilter
name
- to filter on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |