public class TransientSolrCoreCacheDefault extends TransientSolrCoreCache
| Modifier and Type | Field and Description |
|---|---|
protected CoreContainer |
coreContainer |
protected Observer |
observer |
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) |
void |
close()
Must be called in order to free resources!
|
boolean |
containsCore(String name) |
Set<String> |
getAllCoreNames() |
CoreContainer |
getContainer() |
SolrCore |
getCore(String name) |
Set<String> |
getLoadedCoreNames() |
List<String> |
getNamesForCore(SolrCore core) |
int |
getStatus(String coreName) |
CoreDescriptor |
getTransientDescriptor(String name) |
Collection<SolrCore> |
prepareForShutdown() |
SolrCore |
removeCore(String name) |
CoreDescriptor |
removeTransientDescriptor(String name) |
void |
setStatus(String coreName,
int status) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected Observer observer
protected 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 CoreDescriptor removeTransientDescriptor(String name)
removeTransientDescriptor in class TransientSolrCoreCachepublic List<String> getNamesForCore(SolrCore core)
getNamesForCore in class TransientSolrCoreCachepublic void close()
close in class TransientSolrCoreCachepublic int getStatus(String coreName)
getStatus in class TransientSolrCoreCachepublic void setStatus(String coreName, int status)
setStatus in class TransientSolrCoreCacheCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.