public abstract class SolrCoreContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,SolrCoreDescriptor> |
availableCores |
protected Set<SolrCoreDescriptor> |
coreDescriptors |
protected Map<String,Throwable> |
coreInitException |
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SolrCoreContainer(Set<SolrCoreDescriptor> coreDescriptors,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
awaitCoreInitCompletion(String coreName) |
protected void |
awaitInitCompletion() |
protected abstract org.apache.solr.client.solrj.SolrClient |
createSolrClient(String coreName) |
org.apache.solr.client.solrj.SolrClient |
getSolrClient(SolrCoreDescriptor coreDescriptor)
Get a SolrClient for the provided SolrCoreDescriptor.
|
org.apache.solr.client.solrj.SolrClient |
getSolrClient(String coreName)
Get a SolrClient for the provided SolrCoreDescriptor.
|
protected abstract void |
init(ExecutorService executorService) |
void |
initialize() |
boolean |
isCoreAvailable(SolrCoreDescriptor coreDescriptor)
Check if the given core is available (i.e.
|
boolean |
isCoreAvailable(String coreName)
Check if the given core is available (i.e.
|
boolean |
isStartupComplete()
Non-blocking check if startup of the SolrCoreContainer is complete.
|
protected void |
scheduleCoreInit(ExecutorService executorService,
SolrCoreDescriptor coreDescriptor,
boolean newCore) |
void |
shutdown() |
protected final org.slf4j.Logger log
protected final Set<SolrCoreDescriptor> coreDescriptors
protected final Map<String,SolrCoreDescriptor> availableCores
public SolrCoreContainer(Set<SolrCoreDescriptor> coreDescriptors, ExecutorService executorService)
public final void initialize()
protected abstract void init(ExecutorService executorService) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionprotected void scheduleCoreInit(ExecutorService executorService, SolrCoreDescriptor coreDescriptor, boolean newCore)
public void shutdown()
throws IOException
IOExceptionprotected abstract org.apache.solr.client.solrj.SolrClient createSolrClient(String coreName)
public org.apache.solr.client.solrj.SolrClient getSolrClient(String coreName) throws org.apache.solr.client.solrj.SolrServerException
coreName - the core to connect toorg.apache.solr.client.solrj.SolrServerException - if the initialisation of the requested core failedprotected void awaitInitCompletion()
throws InterruptedException
InterruptedExceptionprotected void awaitCoreInitCompletion(String coreName) throws InterruptedException
InterruptedExceptionpublic org.apache.solr.client.solrj.SolrClient getSolrClient(SolrCoreDescriptor coreDescriptor) throws org.apache.solr.client.solrj.SolrServerException
coreDescriptor - the core to connect toorg.apache.solr.client.solrj.SolrServerException - if the initialisation of the requested core failedpublic boolean isStartupComplete()
true if startup is complete.public boolean isCoreAvailable(String coreName)
public boolean isCoreAvailable(SolrCoreDescriptor coreDescriptor)
Copyright © 2017 redlink GmbH. All rights reserved.