public class GlobFilter extends MetricsFilter
限定符和类型 | 字段和说明 |
---|---|
protected static String |
EXCLUDE_KEY |
protected static String |
EXCLUDE_TAGS_KEY |
protected static String |
INCLUDE_KEY |
protected static String |
INCLUDE_TAGS_KEY |
构造器和说明 |
---|
GlobFilter() |
限定符和类型 | 方法和说明 |
---|---|
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
|
accepts
protected Pattern compile(String s)
s
- the string pattern to compilepublic void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init
在接口中 MetricsPlugin
init
在类中 MetricsFilter
conf
- the configuration object for the pluginpublic boolean accepts(MetricsTag tag)
MetricsFilter
accepts
在类中 MetricsFilter
tag
- to filter onpublic boolean accepts(Iterable<MetricsTag> tags)
MetricsFilter
accepts
在类中 MetricsFilter
tags
- to filter onpublic boolean accepts(String name)
MetricsFilter
accepts
在类中 MetricsFilter
name
- to filter onCopyright © 2009 The Apache Software Foundation