public class InstrumentedHttpListenerFactory extends Object implements SolrMetricProducer, HttpListenerFactory
Modifier and Type | Class and Description |
---|---|
static interface |
InstrumentedHttpListenerFactory.NameStrategy |
HttpListenerFactory.RequestResponseListener
Modifier and Type | Field and Description |
---|---|
static Map<String,InstrumentedHttpListenerFactory.NameStrategy> |
KNOWN_METRIC_NAME_STRATEGIES |
protected InstrumentedHttpListenerFactory.NameStrategy |
nameStrategy |
protected String |
scope |
protected SolrMetricsContext |
solrMetricsContext |
Constructor and Description |
---|
InstrumentedHttpListenerFactory(InstrumentedHttpListenerFactory.NameStrategy nameStrategy) |
Modifier and Type | Method and Description |
---|---|
HttpListenerFactory.RequestResponseListener |
get() |
void |
initializeMetrics(SolrMetricsContext parentContext,
String scope)
Initialize metrics specific to this producer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSolrMetricsContext, getUniqueMetricTag, initializeMetrics
public static final Map<String,InstrumentedHttpListenerFactory.NameStrategy> KNOWN_METRIC_NAME_STRATEGIES
protected SolrMetricsContext solrMetricsContext
protected String scope
protected InstrumentedHttpListenerFactory.NameStrategy nameStrategy
public InstrumentedHttpListenerFactory(InstrumentedHttpListenerFactory.NameStrategy nameStrategy)
public HttpListenerFactory.RequestResponseListener get()
get
in interface HttpListenerFactory
public void initializeMetrics(SolrMetricsContext parentContext, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
parentContext
- parent metrics context. If this component has the same life-cycle as the parent
it can simply use the parent context, otherwise it should obtain a child context
using SolrMetricsContext.getChildContext(Object)
passing this
as the child.scope
- component scopeCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.