public class TransientSolrCoreCacheDefault extends TransientSolrCoreCache
| Modifier and Type | Field and Description |
|---|---|
protected CoreContainer |
coreContainer |
protected Map<String,SolrCore> |
transientCores |
protected Map<String,CoreDescriptor> |
transientDescriptors |
| Constructor and Description |
|---|
TransientSolrCoreCacheDefault(CoreContainer container) |
| Modifier and Type | Method and Description |
|---|---|
SolrCore |
addCore(String name,
SolrCore core) |
void |
addTransientDescriptor(String rawName,
CoreDescriptor cd) |
boolean |
containsCore(String name) |
Set<String> |
getAllCoreNames() |
CoreContainer |
getContainer() |
SolrCore |
getCore(String name) |
Set<String> |
getLoadedCoreNames() |
int |
getStatus(String coreName) |
CoreDescriptor |
getTransientDescriptor(String name) |
Collection<CoreDescriptor> |
getTransientDescriptors()
Gets the
CoreDescriptor for all transient cores (loaded and unloaded). |
Collection<SolrCore> |
prepareForShutdown() |
SolrCore |
removeCore(String name) |
CoreDescriptor |
removeTransientDescriptor(String name) |
void |
setStatus(String coreName,
int status) |
closeprotected CoreContainer coreContainer
protected final Map<String,CoreDescriptor> transientDescriptors
public TransientSolrCoreCacheDefault(CoreContainer container)
container - The enclosing CoreContainer. It allows us to access everything we need.public Collection<SolrCore> prepareForShutdown()
prepareForShutdown in class TransientSolrCoreCachepublic CoreContainer getContainer()
getContainer in class TransientSolrCoreCachepublic SolrCore addCore(String name, SolrCore core)
addCore in class TransientSolrCoreCachepublic Set<String> getAllCoreNames()
getAllCoreNames in class TransientSolrCoreCachepublic Set<String> getLoadedCoreNames()
getLoadedCoreNames in class TransientSolrCoreCachepublic SolrCore removeCore(String name)
removeCore in class TransientSolrCoreCachepublic SolrCore getCore(String name)
getCore in class TransientSolrCoreCachepublic boolean containsCore(String name)
containsCore in class TransientSolrCoreCachepublic void addTransientDescriptor(String rawName, CoreDescriptor cd)
addTransientDescriptor in class TransientSolrCoreCachepublic CoreDescriptor getTransientDescriptor(String name)
getTransientDescriptor in class TransientSolrCoreCachepublic Collection<CoreDescriptor> getTransientDescriptors()
TransientSolrCoreCacheCoreDescriptor for all transient cores (loaded and unloaded).getTransientDescriptors in class TransientSolrCoreCachepublic CoreDescriptor removeTransientDescriptor(String name)
removeTransientDescriptor in class TransientSolrCoreCachepublic int getStatus(String coreName)
getStatus in class TransientSolrCoreCachepublic void setStatus(String coreName, int status)
setStatus in class TransientSolrCoreCacheCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.