SolrStandaloneSearchProvider.@Deprecated @SystemSetup(extension="solrfacetsearch") public class SolrServiceStandaloneImpl extends Object implements SolrService, SolrCoresSwapper
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CONFIGSET_PROPERTY
Deprecated.
|
protected static String |
DEFAULT_CONFIGSET_VALUE
Deprecated.
|
| Constructor and Description |
|---|
SolrServiceStandaloneImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
addContextValue(String url,
String context)
Deprecated.
|
void |
afterPropertiesSet()
Deprecated.
|
protected boolean |
areNotNullAndEqual(SolrConfig existingConfig,
SolrConfig solrConfig)
Deprecated.
|
protected SolrClient |
checkCachedInstanceAlive(SolrClient cachedSolrClient,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
|
protected boolean |
checkRemoteCore(String url,
String coreName)
Deprecated.
|
void |
clearSolrInstancesCache()
Deprecated.
|
void |
createIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
Creates the index for a facet search configuration and indexed type.
|
protected LBHttpSolrClient |
createLBHttpSolrServer(String[] urls,
SolrConfig solrConfig)
Deprecated.
|
protected String |
createRegisterCoreRequest(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
String url,
String coreName)
Deprecated.
|
void |
deleteCore(String url,
String coreName)
Deprecated.
|
void |
deleteIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
Deletes the index for a facet search configuration and indexed type.
|
protected LBHttpSolrClient |
getCluster(SolrConfig solrConfig,
String coreContext)
Deprecated.
|
protected String |
getCoreName(IndexedType indexedType,
boolean isMaster)
Deprecated.
|
protected String |
getCoreName(String indexedTypeCode)
Deprecated.
|
protected String |
getIndexName(IndexedType indexedType)
Deprecated.
|
protected int |
getIntegerValue(Integer bigInt,
int defaultValue)
Deprecated.
|
protected String |
getMasterUrl(SolrConfig solrConfig)
Deprecated.
|
Set<SolrClient> |
getRegistredServersForFacetSearchConfig(FacetSearchConfig facetSearchConfig)
Deprecated.
Returns registered
SolrClients for solar configuration |
SolrClient |
getSolrClient(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
Returns a SolrClient instance provided a FacetSearchConfig and IndexedType.
|
SolrClient |
getSolrClientForIndexing(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
Returns the SolrClient instance in a cluster, provided a FacetSearchConfig and indexedType.
|
SolrCoreNameResolver |
getSolrCoreNameResolver()
Deprecated.
|
TenantService |
getTenantService()
Deprecated.
|
protected boolean |
hasConfigChange(SolrConfig existingConfig,
SolrConfig solrConfig,
String key)
Deprecated.
|
protected boolean |
hasConfigurationChanged(String contextValue,
SolrConfig solrConfig)
Deprecated.
Determines if the SOLR Configuration has changed.
|
protected boolean |
isStandaloneInstanceAlive(org.apache.solr.client.solrj.SolrClient standaloneClient)
Deprecated.
|
protected void |
logSolrConnectionParameters(HttpParams parameters)
Deprecated.
|
protected void |
logSolrConnectionParametersAfter(HttpParams parameters)
Deprecated.
|
protected void |
logSolrConnectionParametersBefore(HttpParams parameters)
Deprecated.
|
protected int |
registerRemoteCore(String request)
Deprecated.
|
protected void |
registerSlaveCores(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
|
void |
reloadCore(String url,
String coreName)
Deprecated.
|
void |
reloadIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
Reloads the index for a facet search configuration and indexed type.
|
protected boolean |
sameHTTPParams(ClusterConfig existingClusterConfig,
ClusterConfig solrClusterConfig)
Deprecated.
|
protected boolean |
sameIntegers(Integer int1,
Integer int2)
Deprecated.
|
protected boolean |
sameUrl(EndpointURL endpointURL,
EndpointURL endpointURL2)
Deprecated.
|
protected boolean |
sameURLs(List<EndpointURL> endpointURLs,
List<EndpointURL> endpointURLs2)
Deprecated.
|
protected int |
setAliveCheckInterval(LBHttpSolrClient solrClient,
SolrConfig solrConfig)
Deprecated.
|
protected void |
setHttpClientParams(HttpClient client,
SolrConfig solrConfig)
Deprecated.
|
void |
setSolrCoreNameResolver(SolrCoreNameResolver solrCoreNameResolver)
Deprecated.
|
void |
setTenantService(TenantService tenantService)
Deprecated.
|
protected boolean |
shouldMasterServerBeQueried(SolrConfig solrConfig)
Deprecated.
|
protected int |
swapRemoteCores(String url,
String originalCoreName,
String stagingCoreName)
Deprecated.
|
void |
swapSolrCores(FacetSearchConfig facetSearchConfig,
IndexedType staged)
Deprecated.
Swaps the solr cores represented by the original and staged
IndexedTypes on the solr instance configured
in the given solrConfig. |
protected void |
validateConfiguration(SolrConfig solrConfig)
Deprecated.
Validates a configuration, verifying that one and only one master is specified in the solr cluster.
|
protected static final String DEFAULT_CONFIGSET_PROPERTY
protected static final String DEFAULT_CONFIGSET_VALUE
public TenantService getTenantService()
public void setTenantService(TenantService tenantService)
public SolrCoreNameResolver getSolrCoreNameResolver()
public void setSolrCoreNameResolver(SolrCoreNameResolver solrCoreNameResolver)
public SolrClient getSolrClient(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServicegetSolrClient in interface SolrServicefacetSearchConfig - solr configurationindexedType - The IndexedTypeSolrServiceExceptionpublic SolrClient getSolrClientForIndexing(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServicegetSolrClientForIndexing in interface SolrServiceSolrServiceExceptionpublic void createIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServicecreateIndex in interface SolrServicefacetSearchConfig - - the facet search configurationindexedType - - the indexed typeSolrServiceExceptionpublic void reloadIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServicereloadIndex in interface SolrServicefacetSearchConfig - - the facet search configurationindexedType - - the indexed typeSolrServiceExceptionpublic void reloadCore(String url, String coreName) throws SolrServiceException
SolrServiceExceptionpublic void deleteIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServicedeleteIndex in interface SolrServicefacetSearchConfig - - the facet search configurationindexedType - - the indexed typeSolrServiceExceptionpublic void deleteCore(String url, String coreName) throws SolrServiceException
SolrServiceExceptionprotected String getCoreName(IndexedType indexedType, boolean isMaster) throws SolrServiceException
SolrServiceExceptionprotected boolean isStandaloneInstanceAlive(org.apache.solr.client.solrj.SolrClient standaloneClient)
protected SolrClient checkCachedInstanceAlive(SolrClient cachedSolrClient,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
throws SolrServiceException
SolrServiceExceptionprotected void registerSlaveCores(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException
SolrServiceExceptionprotected final void validateConfiguration(SolrConfig solrConfig) throws SolrServiceException
solrConfig - SolrServiceExceptionprotected final boolean hasConfigurationChanged(String contextValue, SolrConfig solrConfig)
contextValue.contextValue - solrConfig - protected boolean hasConfigChange(SolrConfig existingConfig, SolrConfig solrConfig, String key)
protected boolean areNotNullAndEqual(SolrConfig existingConfig, SolrConfig solrConfig)
protected boolean sameHTTPParams(ClusterConfig existingClusterConfig, ClusterConfig solrClusterConfig)
protected boolean sameURLs(List<EndpointURL> endpointURLs, List<EndpointURL> endpointURLs2)
protected boolean sameUrl(EndpointURL endpointURL, EndpointURL endpointURL2)
protected String createRegisterCoreRequest(FacetSearchConfig facetSearchConfig, IndexedType indexedType, String url, String coreName) throws SolrServiceException
SolrServiceExceptionprotected int registerRemoteCore(String request) throws SolrServiceException
SolrServiceExceptionprotected boolean checkRemoteCore(String url, String coreName) throws SolrServiceException
url - - url without core nameSolrServiceExceptionprotected int swapRemoteCores(String url, String originalCoreName, String stagingCoreName) throws SolrCoresSwappingException
SolrCoresSwappingExceptionprotected String getMasterUrl(SolrConfig solrConfig) throws SolrServiceException
SolrServiceExceptionprotected LBHttpSolrClient getCluster(SolrConfig solrConfig, String coreContext) throws SolrServiceException
SolrServiceExceptionprotected boolean shouldMasterServerBeQueried(SolrConfig solrConfig)
protected LBHttpSolrClient createLBHttpSolrServer(String[] urls, SolrConfig solrConfig) throws MalformedURLException
MalformedURLExceptionprotected void logSolrConnectionParametersAfter(HttpParams parameters)
protected void logSolrConnectionParametersBefore(HttpParams parameters)
protected void logSolrConnectionParameters(HttpParams parameters)
protected int setAliveCheckInterval(LBHttpSolrClient solrClient,
SolrConfig solrConfig)
protected void setHttpClientParams(HttpClient client,
SolrConfig solrConfig)
protected int getIntegerValue(Integer bigInt, int defaultValue)
protected String addContextValue(String url, String context) throws SolrServiceException
SolrServiceExceptionprotected String getIndexName(IndexedType indexedType)
@SystemSetup(process=ALL, type=ESSENTIAL) public void clearSolrInstancesCache()
public void afterPropertiesSet()
public void swapSolrCores(FacetSearchConfig facetSearchConfig, IndexedType staged) throws SolrCoresSwappingException
SolrCoresSwapperIndexedTypes on the solr instance configured
in the given solrConfig.swapSolrCores in interface SolrCoresSwapperfacetSearchConfig - - configuration of facet search.staged - - temporary indexed type, representing the staged solr indexSolrCoresSwappingExceptionpublic Set<SolrClient> getRegistredServersForFacetSearchConfig(FacetSearchConfig facetSearchConfig) throws SolrServiceException
SolrServiceSolrClients for solar configurationgetRegistredServersForFacetSearchConfig in interface SolrServicefacetSearchConfig - solar configurationSolrClients instancesSolrServiceExceptionCopyright © 2017 SAP SE. All Rights Reserved.