public abstract class HighlightingPluginBase extends Object implements SolrInfoBean, SolrMetricProducer
SolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
protected SolrParams |
defaults |
protected SolrMetricManager |
metricManager |
protected Set<String> |
metricNames |
protected com.codahale.metrics.Counter |
numRequests |
protected com.codahale.metrics.MetricRegistry |
registry |
protected String |
registryName |
| Constructor and Description |
|---|
HighlightingPluginBase() |
| Modifier and Type | Method and Description |
|---|---|
SolrInfoBean.Category |
getCategory()
Category of this component
|
abstract String |
getDescription()
Simple one or two line description
|
Set<String> |
getMetricNames()
Modifiable set of metric names that this component reports (default is null,
which means none).
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
An instance of
MetricRegistry that this component uses for metrics reporting
(default is null, which means no registry). |
String |
getName()
Simple common usage name, e.g.
|
void |
init(NamedList args) |
void |
initializeMetrics(SolrMetricManager manager,
String registryName,
String tag,
String scope)
Initializes metrics specific to this producer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNameclose, getSolrMetricsContext, getUniqueMetricTag, initializeMetricsprotected com.codahale.metrics.Counter numRequests
protected SolrParams defaults
protected com.codahale.metrics.MetricRegistry registry
protected SolrMetricManager metricManager
protected String registryName
public void init(NamedList args)
public String getName()
SolrInfoBeangetName in interface SolrInfoBeanpublic abstract String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeanpublic SolrInfoBean.Category getCategory()
SolrInfoBeangetCategory in interface SolrInfoBeanpublic Set<String> getMetricNames()
SolrInfoBeanSolrInfoBean.registerMetricName(String)
to capture what metrics names are reported from this component.
NOTE: this set has to allow iteration under modifications.
getMetricNames in interface SolrInfoBeanpublic com.codahale.metrics.MetricRegistry getMetricRegistry()
SolrInfoBeanMetricRegistry that this component uses for metrics reporting
(default is null, which means no registry).getMetricRegistry in interface SolrInfoBeanpublic void initializeMetrics(SolrMetricManager manager, String registryName, String tag, String scope)
SolrMetricProducerinitializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistryName - registry name where metrics are registeredtag - a symbolic tag that represents this instance of the producer,
or a group of related instances that have the same life-cycle. This tag is
used when managing life-cycle of some metrics.scope - scope of the metrics (eg. handler name) to separate metrics of components with
the same implementation but different scope.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.