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
|
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getConnectionManager() |
String |
getDescription()
Simple one or two line description
|
org.apache.http.client.HttpClient |
getHttpClient() |
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()
In general, RecoveryStrategy threads do not do disk IO, but they open and close SolrCores
in async threads, among other things, and can trigger disk IO, so we use this alternate
executor rather than the 'updateExecutor', which is interrupted on shutdown.
|
ExecutorService |
getUpdateExecutor()
This method returns an executor that is not meant for disk IO and that will
be interrupted on shutdown.
|
void |
initializeMetrics(SolrMetricManager manager,
String registryName,
String scope)
Initializes metrics specific to this producer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricsSnapshot, registerMetricName
public UpdateShardHandler(UpdateShardHandlerConfig cfg)
public String getName()
SolrInfoBean
getName
in interface SolrInfoBean
public void initializeMetrics(SolrMetricManager manager, String registryName, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
manager
- an instance of SolrMetricManager
registryName
- registry name where metrics are registeredscope
- scope of the metrics (eg. handler name) to separate metrics of
instances of the same component executing in different contextspublic String getDescription()
SolrInfoBean
getDescription
in interface SolrInfoBean
public SolrInfoBean.Category getCategory()
SolrInfoBean
getCategory
in interface SolrInfoBean
public Set<String> getMetricNames()
SolrInfoBean
SolrInfoBean.registerMetricName(String)
to capture what metrics names are reported from this component.
NOTE: this set has to allow iteration under modifications.
getMetricNames
in interface SolrInfoBean
public com.codahale.metrics.MetricRegistry getMetricRegistry()
SolrInfoBean
MetricRegistry
that this component uses for metrics reporting
(default is null, which means no registry).getMetricRegistry
in interface SolrInfoBean
public org.apache.http.client.HttpClient getHttpClient()
public ExecutorService getUpdateExecutor()
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getConnectionManager()
public ExecutorService getRecoveryExecutor()
RecoveryStrategy
thread which will not be interrupted on close.public void close()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.