@Deprecated public class DefaultSolrServerService extends java.lang.Object implements SolrServerService
SolrServerService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FAIL_ON_ERROR
Deprecated.
|
static boolean |
FAIL_ON_ERROR_DEFAULT_VALUE
Deprecated.
|
static java.lang.String |
SOLR_INSTANCES_PATH
Deprecated.
|
| Constructor and Description |
|---|
DefaultSolrServerService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
buildInstancesConfigurations()
Deprecated.
|
void |
createInstance(SolrInstance solrInstance)
Deprecated.
Creates a Solr instance.
|
protected void |
createInstanceConfigDirectory(SolrInstance solrInstance)
Deprecated.
|
protected void |
createInstanceDataDirectory(SolrInstance solrInstance)
Deprecated.
|
protected void |
createInstanceLogDirectory(SolrInstance solrInstance)
Deprecated.
|
void |
deleteInstance(SolrInstance solrInstance)
Deprecated.
Deletes a Solr instance.
|
void |
destroy()
Deprecated.
Performs the shutdown of this service.
|
SolrInstance |
getInstanceForName(java.lang.String instanceName)
Deprecated.
Returns the configured Solr instance for a given name.
|
java.util.Map<java.lang.String,SolrInstance> |
getInstances()
Deprecated.
Returns all configured Solr instances.
|
SolrServerConfigurationProvider |
getSolrServerConfigurationProvider()
Deprecated.
|
SolrServerControllerFactory |
getSolrServerControllerFactory()
Deprecated.
|
void |
init()
Deprecated.
Performs the initialization of this service.
|
protected SolrInstance |
initializeInstance(java.lang.String instanceName)
Deprecated.
|
void |
initializeInstances()
Deprecated.
Initializes the Solr server instances.
|
protected boolean |
isFailOnError()
Deprecated.
|
void |
setSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider)
Deprecated.
|
void |
setSolrServerControllerFactory(SolrServerControllerFactory solrServerControllerFactory)
Deprecated.
|
void |
startServer(SolrInstance solrInstance)
Deprecated.
Starts the Solr server for a given instance.
|
void |
startServers()
Deprecated.
Starts all Solr servers that are configured to be automatically started/stopped.
|
void |
stopServer(SolrInstance solrInstance)
Deprecated.
Stops the Solr server for a given instance.
|
void |
stopServers()
Deprecated.
Stops all Solr servers that are configured to be automatically started/stopped.
|
protected void |
stopServers(java.util.List<SolrInstance> solrInstances)
Deprecated.
|
void |
uploadConfig(SolrInstance solrInstance)
Deprecated.
Uploads the Solr server configuration.
|
public static final java.lang.String SOLR_INSTANCES_PATH
public static final java.lang.String FAIL_ON_ERROR
public static final boolean FAIL_ON_ERROR_DEFAULT_VALUE
public void init()
throws SolrServerException
SolrServerServiceinit in interface SolrServerServiceSolrServerException - if an error occurs during initializationpublic void destroy()
throws SolrServerException
SolrServerServicedestroy in interface SolrServerServiceSolrServerException - if an error occurs during shutdownpublic java.util.Map<java.lang.String,SolrInstance> getInstances()
SolrServerServicegetInstances in interface SolrServerServicepublic SolrInstance getInstanceForName(java.lang.String instanceName) throws SolrInstanceNotFoundException
SolrServerServicegetInstanceForName in interface SolrServerServiceinstanceName - - the instance nameSolrInstanceNotFoundException - if an instance is not found for the given namepublic void createInstance(SolrInstance solrInstance) throws SolrServerException
SolrServerServicecreateInstance in interface SolrServerServicesolrInstance - - the Solr instanceSolrServerException - if an error occurs while creating the Solr instance.protected void createInstanceConfigDirectory(SolrInstance solrInstance) throws java.io.IOException
java.io.IOExceptionprotected void createInstanceDataDirectory(SolrInstance solrInstance) throws java.io.IOException
java.io.IOExceptionprotected void createInstanceLogDirectory(SolrInstance solrInstance) throws java.io.IOException
java.io.IOExceptionpublic void deleteInstance(SolrInstance solrInstance) throws SolrServerException
SolrServerServicedeleteInstance in interface SolrServerServicesolrInstance - - the Solr instanceSolrServerException - if an error occurs while deleting the Solr instance.public void startServer(SolrInstance solrInstance) throws SolrServerException
SolrServerServicestartServer in interface SolrServerServicesolrInstance - - the Solr instanceSolrServerException - if an error occurs while starting the server.public void stopServer(SolrInstance solrInstance) throws SolrServerException
SolrServerServicestopServer in interface SolrServerServicesolrInstance - - the Solr instanceSolrServerException - if an error occurs while stopping the server.public void startServers()
throws SolrServerException
SolrServerServicestartServers in interface SolrServerServiceSolrServerException - if an error occurs while starting the servers, depending on configuration the errors might be ignored and
the exception not thrownSolrInstance.isAutostart()protected void stopServers(java.util.List<SolrInstance> solrInstances) throws SolrServerException
SolrServerExceptionpublic void stopServers()
throws SolrServerException
SolrServerServicestopServers in interface SolrServerServiceSolrServerException - if an error occurs while stopping the servers, depending on configuration the errors might be ignored and
the exception not thrownSolrInstance.isAutostart()public void uploadConfig(SolrInstance solrInstance) throws SolrServerException
SolrServerServiceuploadConfig in interface SolrServerServicesolrInstance - - the Solr instanceSolrServerException - - if an error occurs while uploading the configurationpublic void initializeInstances()
SolrServerServiceinitializeInstances in interface SolrServerServiceprotected java.util.Map<java.lang.String,java.lang.String> buildInstancesConfigurations()
protected SolrInstance initializeInstance(java.lang.String instanceName)
protected boolean isFailOnError()
public SolrServerConfigurationProvider getSolrServerConfigurationProvider()
public void setSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider)
public SolrServerControllerFactory getSolrServerControllerFactory()
public void setSolrServerControllerFactory(SolrServerControllerFactory solrServerControllerFactory)
Copyright © 2018 SAP SE. All Rights Reserved.