|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics2.MetricsFilter
org.apache.hadoop.metrics2.filter.GlobFilter
public class GlobFilter
A glob 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 | |
|---|---|
GlobFilter()
|
|
| 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 GlobFilter()
| 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 MetricsPlugininit in class MetricsFilterconf - the configuration object for the pluginpublic boolean accepts(MetricsTag tag)
MetricsFilter
accepts in class MetricsFiltertag - to filter on
public boolean accepts(Iterable<MetricsTag> tags)
MetricsFilter
accepts in class MetricsFiltertags - to filter on
public boolean accepts(String name)
MetricsFilter
accepts in class MetricsFiltername - to filter on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||