public static class SolrMetricManager.RegexFilter extends Object implements com.codahale.metrics.MetricFilter
MetricFilter
that selects metrics
with names that match regular expression patterns.Constructor and Description |
---|
RegexFilter(Collection<String> patterns) |
RegexFilter(String... patterns)
Create a filter that uses the provided prefix.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getMatched()
Return the set of names that matched this filter.
|
boolean |
matches(String name,
com.codahale.metrics.Metric metric) |
void |
reset()
Clear the set of names that matched.
|
String |
toString() |
public RegexFilter(String... patterns) throws PatternSyntaxException
patterns
- regex patterns to use, must not be null. If empty then any
name will match, if not empty then match on any pattern will
succeed (logical OR).PatternSyntaxException
public RegexFilter(Collection<String> patterns) throws PatternSyntaxException
PatternSyntaxException
public boolean matches(String name, com.codahale.metrics.Metric metric)
matches
in interface com.codahale.metrics.MetricFilter
public Set<String> getMatched()
public void reset()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.