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, waitclose, getSolrMetricsContext, getUniqueMetricTag, initializeMetricspublic 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 HttpListenerFactorypublic void initializeMetrics(SolrMetricsContext parentContext, String scope)
SolrMetricProducerinitializeMetrics in interface SolrMetricProducerparentContext - 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-2021 Apache Software Foundation. All Rights Reserved.