public class UpdateShardHandler extends Object implements SolrMetricProducer, SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group| Constructor and Description |
|---|
UpdateShardHandler(UpdateShardHandlerConfig cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SolrInfoBean.Category |
getCategory()
Category of this component
|
int |
getConnectionTimeout() |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getDefaultConnectionManager() |
org.apache.http.client.HttpClient |
getDefaultHttpClient() |
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.
|
ExecutorService |
getRecoveryExecutor() |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getRecoveryOnlyConnectionManager() |
org.apache.http.client.HttpClient |
getRecoveryOnlyHttpClient() |
int |
getSocketTimeout() |
ExecutorService |
getUpdateExecutor()
This method returns an executor that is meant for non search related tasks.
|
org.apache.http.client.HttpClient |
getUpdateOnlyHttpClient() |
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, waitinitializeMetricsgetMetricsSnapshot, registerMetricNamepublic UpdateShardHandler(UpdateShardHandlerConfig cfg)
public String getName()
SolrInfoBeangetName in interface SolrInfoBeanpublic void initializeMetrics(SolrMetricManager manager, String registryName, String tag, String scope)
SolrMetricProducerNote: for back-compatibility this method by default calls SolrMetricProducer.initializeMetrics(SolrMetricManager, String, String).
initializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistryName - registry name where metrics are registeredtag - symbolic tag that represents a group of related instances that
have the same life-cycle. Parent component can use the tag when
calling SolrMetricManager.unregisterGauges(String, String)
to unregister metrics created by this instance of the producer.scope - scope of the metrics (eg. handler name) to separate metrics of
instances of the same component executing in different contextspublic 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 org.apache.http.client.HttpClient getDefaultHttpClient()
public org.apache.http.client.HttpClient getUpdateOnlyHttpClient()
public org.apache.http.client.HttpClient getRecoveryOnlyHttpClient()
public ExecutorService getUpdateExecutor()
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getDefaultConnectionManager()
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getRecoveryOnlyConnectionManager()
public ExecutorService getRecoveryExecutor()
public void close()
public int getSocketTimeout()
public int getConnectionTimeout()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.