public class DefaultSolrClientPool extends java.lang.Object implements SolrClientPool
SolrClientPool.| Modifier and Type | Field and Description |
|---|---|
protected static long |
CHECK_INTERVAL_DEFAULT_VALUE |
protected static java.lang.String |
CHECK_INTERVAL_PROPERTY |
protected static java.lang.String |
CHECK_THREAD_NAME_PREFIX |
protected static long |
SCHEDULER_TERMINATION_TIMEOUT |
| Constructor and Description |
|---|
DefaultSolrClientPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected java.lang.Long[] |
buildTimestamps(SolrConfig solrConfig) |
protected void |
checkAll() |
protected void |
closeSolrClientsWrapper(java.lang.String solrConfigName,
SolrClientsWrapper clientsWrapper) |
protected CachedSolrClient |
createSolrClient(SolrClientsWrapper clientsWrapper,
SolrClientType solrClientType,
SolrConfig solrConfig,
java.util.function.Function<SolrConfig,SolrClient> createFunction) |
protected void |
destroySession() |
ConfigurationService |
getConfigurationService() |
SolrClient |
getOrCreate(Index index,
SolrClientType solrClientType,
java.util.function.Function<SolrConfig,SolrClient> createFunction)
Get
SolrClient from the pool, or create it if it does not exist. |
protected java.util.concurrent.ScheduledExecutorService |
getScheduler() |
SessionService |
getSessionService() |
protected java.util.concurrent.ConcurrentMap<java.lang.String,SolrClientsWrapper> |
getSolrClients() |
Converter<SolrServerConfigModel,SolrConfig> |
getSolrServerConfigConverter() |
SolrServerConfigDao |
getSolrServerConfigDao() |
protected java.lang.String |
getTenantId() |
TenantService |
getTenantService() |
protected void |
initializeSession() |
void |
invalidateAll()
Invalidates the clients pool.
|
protected SolrConfig |
loadSolrConfig(java.lang.String solrConfigName) |
protected SolrClientsWrapper |
refreshWrapper(SolrConfig solrConfig,
SolrClientsWrapper clientsWrapper,
SolrClientType solrClientType,
java.util.function.Function<SolrConfig,SolrClient> createFunction) |
protected CachedSolrClient |
resolveSolrClient(SolrClientsWrapper clientsWrapper,
SolrClientType solrClientType) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setSessionService(SessionService sessionService) |
void |
setSolrServerConfigConverter(Converter<SolrServerConfigModel,SolrConfig> solrServerConfigConverter) |
void |
setSolrServerConfigDao(SolrServerConfigDao solrServerConfigDao) |
void |
setTenantService(TenantService tenantService) |
protected void |
startCleanUpThread() |
protected void |
stopCleanUpThread() |
protected static final java.lang.String CHECK_INTERVAL_PROPERTY
protected static final long CHECK_INTERVAL_DEFAULT_VALUE
protected static final java.lang.String CHECK_THREAD_NAME_PREFIX
protected static final long SCHEDULER_TERMINATION_TIMEOUT
protected java.lang.String getTenantId()
protected java.util.concurrent.ScheduledExecutorService getScheduler()
protected java.util.concurrent.ConcurrentMap<java.lang.String,SolrClientsWrapper> getSolrClients()
public void afterPropertiesSet()
public SolrClient getOrCreate(Index index, SolrClientType solrClientType, java.util.function.Function<SolrConfig,SolrClient> createFunction) throws SolrServiceException
SolrClientPoolSolrClient from the pool, or create it if it does not exist.getOrCreate in interface SolrClientPoolindex - - IndexsolrClientType - - SolrClientTypecreateFunction - - Method to be used to create SolrClient.SolrClientSolrServiceException - if an error occurspublic void invalidateAll()
SolrClientPoolinvalidateAll in interface SolrClientPoolprotected void checkAll()
protected SolrClientsWrapper refreshWrapper(SolrConfig solrConfig, SolrClientsWrapper clientsWrapper, SolrClientType solrClientType, java.util.function.Function<SolrConfig,SolrClient> createFunction)
protected CachedSolrClient resolveSolrClient(SolrClientsWrapper clientsWrapper, SolrClientType solrClientType)
protected CachedSolrClient createSolrClient(SolrClientsWrapper clientsWrapper, SolrClientType solrClientType, SolrConfig solrConfig, java.util.function.Function<SolrConfig,SolrClient> createFunction)
protected void closeSolrClientsWrapper(java.lang.String solrConfigName,
SolrClientsWrapper clientsWrapper)
protected SolrConfig loadSolrConfig(java.lang.String solrConfigName)
protected java.lang.Long[] buildTimestamps(SolrConfig solrConfig)
protected void startCleanUpThread()
protected void stopCleanUpThread()
protected void initializeSession()
protected void destroySession()
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
public TenantService getTenantService()
public void setTenantService(TenantService tenantService)
public SessionService getSessionService()
public void setSessionService(SessionService sessionService)
public SolrServerConfigDao getSolrServerConfigDao()
public void setSolrServerConfigDao(SolrServerConfigDao solrServerConfigDao)
public Converter<SolrServerConfigModel,SolrConfig> getSolrServerConfigConverter()
public void setSolrServerConfigConverter(Converter<SolrServerConfigModel,SolrConfig> solrServerConfigConverter)
Copyright © 2017 SAP SE. All Rights Reserved.