mirror of https://github.com/apache/lucene.git
SOLR-13733: add class-level javadocs for 4 org.apache.solr.metrics classes
This commit is contained in:
parent
26804a069b
commit
6f12075e9a
|
@ -21,6 +21,9 @@ import java.util.List;
|
||||||
|
|
||||||
import com.codahale.metrics.MetricFilter;
|
import com.codahale.metrics.MetricFilter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A {@link SolrMetricReporter} that supports (prefix) filters.
|
||||||
|
*/
|
||||||
public abstract class FilteringSolrMetricReporter extends SolrMetricReporter {
|
public abstract class FilteringSolrMetricReporter extends SolrMetricReporter {
|
||||||
|
|
||||||
protected List<String> filters = new ArrayList<>();
|
protected List<String> filters = new ArrayList<>();
|
||||||
|
|
|
@ -293,6 +293,10 @@ public class SolrMetricManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An implementation of {@link MetricFilter} that selects metrics
|
||||||
|
* that match any filter in a list of filters.
|
||||||
|
*/
|
||||||
public static class OrFilter implements MetricFilter {
|
public static class OrFilter implements MetricFilter {
|
||||||
List<MetricFilter> filters = new ArrayList<>();
|
List<MetricFilter> filters = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -323,6 +327,10 @@ public class SolrMetricManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An implementation of {@link MetricFilter} that selects metrics
|
||||||
|
* that match all filters in a list of filters.
|
||||||
|
*/
|
||||||
public static class AndFilter implements MetricFilter {
|
public static class AndFilter implements MetricFilter {
|
||||||
List<MetricFilter> filters = new ArrayList<>();
|
List<MetricFilter> filters = new ArrayList<>();
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,9 @@ public class JmxMetricsReporter implements Reporter, Closeable {
|
||||||
return new Builder(registry);
|
return new Builder(registry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builder for the {@link JmxMetricsReporter} class.
|
||||||
|
*/
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
private final MetricRegistry registry;
|
private final MetricRegistry registry;
|
||||||
private MBeanServer mBeanServer;
|
private MBeanServer mBeanServer;
|
||||||
|
|
|
@ -116,6 +116,9 @@ public class SolrReporter extends ScheduledReporter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builder for the {@link SolrReporter} class.
|
||||||
|
*/
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
private final SolrMetricManager metricManager;
|
private final SolrMetricManager metricManager;
|
||||||
private final List<Report> reports;
|
private final List<Report> reports;
|
||||||
|
|
Loading…
Reference in New Issue