public class UpdateShardHandler extends Object
| Constructor and Description |
|---|
UpdateShardHandler(ConfigSolr cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.http.conn.ClientConnectionManager |
getConnectionManager() |
org.apache.http.client.HttpClient |
getHttpClient() |
ExecutorService |
getRecoveryExecutor()
In general, RecoveryStrategy threads do not do disk IO, but they open and close SolrCores
in async threads, amoung 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.
|
public UpdateShardHandler(ConfigSolr cfg)
public org.apache.http.client.HttpClient getHttpClient()
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-2016 Apache Software Foundation. All Rights Reserved.