public abstract class AbstractSolrServerController extends Object implements SolrServerController
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSolrServerController.CommandResult |
protected static class |
AbstractSolrServerController.ServerStatus |
protected static interface |
AbstractSolrServerController.ServerStatusFunction |
protected static class |
AbstractSolrServerController.ServerStatusOutput |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGSETS_PATH |
static String |
CORES_PATH |
static String |
FORCE_RESTART |
static boolean |
FORCE_RESTART_DEFAULT_VALUE |
static String |
JSON_REGEX |
static String |
MAX_STATUS_RETRIES |
static int |
MAX_STATUS_RETRIES_DEFAULT_VALUE |
static String |
RUNNING_CHECK_REGEX |
static String |
SOLR_START_COMMAND |
static String |
SOLR_STATUS_COMMAND |
static String |
SOLR_STOP_COMMAND |
static String |
STATUS_INTERVAL |
static long |
STATUS_INTERVAL_DEFAULT_VALUE |
static String |
TIMEOUT |
static long |
TIMEOUT_DEFAULT_VALUE |
static String |
ZK_COLLECTION_PARAM |
static String |
ZK_CONFDIR_PARAM |
static String |
ZK_CONFNAME_PARAM |
static String |
ZK_DATA_PATH |
static String |
ZK_NAME_PARAM |
static String |
ZK_RUNZK_PARAM |
static String |
ZK_SOLRHOME_PARAM |
static String |
ZK_UPLOAD_CONFIG_COMMAND |
static String |
ZK_VAL_PARAM |
| Constructor and Description |
|---|
AbstractSolrServerController() |
public static final String RUNNING_CHECK_REGEX
public static final String JSON_REGEX
public static final String SOLR_STATUS_COMMAND
public static final String SOLR_START_COMMAND
public static final String SOLR_STOP_COMMAND
public static final String ZK_UPLOAD_CONFIG_COMMAND
public static final String ZK_COLLECTION_PARAM
public static final String ZK_VAL_PARAM
public static final String ZK_NAME_PARAM
public static final String ZK_SOLRHOME_PARAM
public static final String ZK_RUNZK_PARAM
public static final String ZK_CONFNAME_PARAM
public static final String ZK_CONFDIR_PARAM
public static final String FORCE_RESTART
public static final boolean FORCE_RESTART_DEFAULT_VALUE
public static final String TIMEOUT
public static final long TIMEOUT_DEFAULT_VALUE
public static final String MAX_STATUS_RETRIES
public static final int MAX_STATUS_RETRIES_DEFAULT_VALUE
public static final String STATUS_INTERVAL
public static final long STATUS_INTERVAL_DEFAULT_VALUE
public static final String CONFIGSETS_PATH
public static final String CORES_PATH
public static final String ZK_DATA_PATH
public void start(SolrInstance solrInstance) throws SolrServerException
SolrServerControllerstart in interface SolrServerControllersolrInstance - - the Solr instanceSolrServerException - - if an error occurs while starting the Solr serverprotected void ensureToStartSolr(SolrInstance solrInstance) throws SolrServerException, InterruptedException
protected void uploadConfigurationToZK(SolrInstance solrInstance) throws SolrServerException, InterruptedException
public void stop(SolrInstance solrInstance) throws SolrServerException
SolrServerControllerstop in interface SolrServerControllersolrInstance - - the Solr instanceSolrServerException - - if an error occurs while stopping the Solr serverprotected void ensureToStopSolr(SolrInstance solrInstance) throws SolrServerException, InterruptedException
protected AbstractSolrServerController.CommandResult callSolrCommand(SolrInstance solrInstance, String command, boolean logOutput) throws SolrServerException, InterruptedException
protected AbstractSolrServerController.CommandResult callZKClientCommand(SolrInstance solrInstance, String command, Map<String,String> parameters, boolean logOutput) throws SolrServerException, InterruptedException
protected abstract void configureSolrCommandInvocation(SolrInstance solrInstance, ProcessBuilder processBuilder, String command)
protected abstract void configureZKCommandInvocation(SolrInstance solrInstance, ProcessBuilder processBuilder, String command)
protected void configureSolrCommandParams(SolrInstance solrInstance, ProcessBuilder processBuilder)
protected void configureZKCommandParams(ProcessBuilder processBuilder, Map<String,String> zkParameters)
protected String resolveZkHost(SolrInstance solrInstance)
protected AbstractSolrServerController.ServerStatus getSolrServerStatus(SolrInstance solrInstance) throws SolrServerException, InterruptedException
protected Map<Integer,AbstractSolrServerController.ServerStatusOutput> collectServerStatusOutput(String commandOutput)
protected AbstractSolrServerController.ServerStatus retryGetStatusUntilConditionIsTrue(SolrInstance solrInstance, AbstractSolrServerController.ServerStatusFunction condition, String retryMessage, String errorMessage) throws SolrServerException, InterruptedException
protected boolean isCorrespondingServerForInstance(SolrInstance solrInstance, AbstractSolrServerController.ServerStatus serverStatus) throws SolrServerException
SolrServerExceptionprotected boolean isForceRestart()
protected int getMaxStatusRetries()
protected long getTimeout()
protected long getStatusInterval()
Copyright © 2017 SAP SE. All Rights Reserved.