public class UpdateShardHandler extends Object implements SolrMetricProducer, SolrInfoMBean
Modifier and Type | Class and Description |
---|---|
static class |
UpdateShardHandler.IdleConnectionsEvictor
This class is adapted from org.apache.http.impl.client.IdleConnectionEvictor and changed to use
the deprecated ClientConnectionManager instead of the new HttpClientConnectionManager.
|
SolrInfoMBean.Category, SolrInfoMBean.Group
Constructor and Description |
---|
UpdateShardHandler(UpdateShardHandlerConfig cfg) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
protected ModifiableSolrParams |
getClientParams() |
org.apache.http.conn.ClientConnectionManager |
getConnectionManager() |
String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
org.apache.http.client.HttpClient |
getHttpClient() |
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.
|
String |
getSource()
CVS Source, SVN Source, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
ExecutorService |
getUpdateExecutor()
This method returns an executor that is not meant for disk IO and that will
be interrupted on shutdown.
|
String |
getVersion()
Simple common usage version, e.g.
|
void |
initializeMetrics(SolrMetricManager manager,
String registry,
String scope)
Initializes metrics specific to this producer
|
void |
reconfigureHttpClient(HttpClientConfigurer configurer) |
public UpdateShardHandler(UpdateShardHandlerConfig cfg)
protected ModifiableSolrParams getClientParams()
public String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
public void initializeMetrics(SolrMetricManager manager, String registry, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
manager
- an instance of SolrMetricManager
registry
- 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()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
public org.apache.http.client.HttpClient getHttpClient()
public void reconfigureHttpClient(HttpClientConfigurer configurer)
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
public ExecutorService getUpdateExecutor()
public ExecutorService getRecoveryExecutor()
RecoveryStrategy
thread which will not be interrupted on close.public void close()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.