Package org.apache.solr.metrics
Class FilteringSolrMetricReporter
- java.lang.Object
-
- org.apache.solr.metrics.SolrMetricReporter
-
- org.apache.solr.metrics.FilteringSolrMetricReporter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PluginInfoInitialized
- Direct Known Subclasses:
SolrCoreReporter
,SolrGraphiteReporter
,SolrJmxReporter
,SolrSlf4jReporter
public abstract class FilteringSolrMetricReporter extends SolrMetricReporter
ASolrMetricReporter
that supports (prefix) filters.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
filters
-
Fields inherited from class org.apache.solr.metrics.SolrMetricReporter
enabled, metricManager, period, pluginInfo, registryName
-
-
Constructor Summary
Constructors Constructor Description FilteringSolrMetricReporter(SolrMetricManager metricManager, String registryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.codahale.metrics.MetricFilter
newMetricFilter()
Report only metrics with names matching any of the prefix filters.void
setFilter(String filter)
void
setFilter(List<String> filters)
-
Methods inherited from class org.apache.solr.metrics.SolrMetricReporter
doInit, getPeriod, getPluginInfo, init, setEnabled, setPeriod, toString, validate
-
-
-
-
Constructor Detail
-
FilteringSolrMetricReporter
public FilteringSolrMetricReporter(SolrMetricManager metricManager, String registryName)
-
-
Method Detail
-
setFilter
public void setFilter(String filter)
-
newMetricFilter
protected com.codahale.metrics.MetricFilter newMetricFilter()
Report only metrics with names matching any of the prefix filters. If the filters list is empty then all names will match.
-
-