public class UpdateShardHandler extends Object implements SolrMetricProducer, SolrInfoMBean
| Modifier and Type | Class and Description | 
|---|---|
| static class  | UpdateShardHandler.IdleConnectionsEvictorThis 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()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic void initializeMetrics(SolrMetricManager manager, String registry, String scope)
SolrMetricProducerinitializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistry - 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()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeangetCategory in interface SolrInfoMBeanpublic String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeanpublic NamedList getStatistics()
SolrInfoMBean
 Any Object type may be stored in the list, but only the
 toString() representation will be used.
 
getStatistics in interface SolrInfoMBeanpublic 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.