public interface SolrInfoBean
Modifier and Type | Interface and Description |
---|---|
static class |
SolrInfoBean.Category
Category of Solr component.
|
static class |
SolrInfoBean.Group
Top-level group of beans or metrics for a subsystem.
|
Modifier and Type | Method and Description |
---|---|
SolrInfoBean.Category |
getCategory()
Category of this component
|
String |
getDescription()
Simple one or two line description
|
default Set<String> |
getMetricNames()
Modifiable set of metric names that this component reports (default is null,
which means none).
|
default com.codahale.metrics.MetricRegistry |
getMetricRegistry()
An instance of
MetricRegistry that this component uses for metrics reporting
(default is null, which means no registry). |
default Map<String,Object> |
getMetricsSnapshot()
Optionally return a snapshot of metrics that this component reports, or null.
|
String |
getName()
Simple common usage name, e.g.
|
default void |
registerMetricName(String name)
Register a metric name that this component reports.
|
String getName()
String getDescription()
SolrInfoBean.Category getCategory()
default Map<String,Object> getMetricsSnapshot()
getMetricNames()
and
getMetricRegistry()
return non-null values.default Set<String> getMetricNames()
registerMetricName(String)
to capture what metrics names are reported from this component.
NOTE: this set has to allow iteration under modifications.
default com.codahale.metrics.MetricRegistry getMetricRegistry()
MetricRegistry
that this component uses for metrics reporting
(default is null, which means no registry).default void registerMetricName(String name)
SolrMetricManager
in order
to capture what metric names are reported from this component (which in turn is called
from SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String, String)
).
Default implementation registers all metrics added by a component. Implementations may
override this to avoid reporting some or all metrics returned by getMetricsSnapshot()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.