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, setChanged
protected 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 TransientSolrCoreCache
public CoreContainer getContainer()
getContainer
in class TransientSolrCoreCache
public SolrCore addCore(String name, SolrCore core)
addCore
in class TransientSolrCoreCache
public Set<String> getAllCoreNames()
getAllCoreNames
in class TransientSolrCoreCache
public Set<String> getLoadedCoreNames()
getLoadedCoreNames
in class TransientSolrCoreCache
public SolrCore removeCore(String name)
removeCore
in class TransientSolrCoreCache
public SolrCore getCore(String name)
getCore
in class TransientSolrCoreCache
public boolean containsCore(String name)
containsCore
in class TransientSolrCoreCache
public void addTransientDescriptor(String rawName, CoreDescriptor cd)
addTransientDescriptor
in class TransientSolrCoreCache
public CoreDescriptor getTransientDescriptor(String name)
getTransientDescriptor
in class TransientSolrCoreCache
public CoreDescriptor removeTransientDescriptor(String name)
removeTransientDescriptor
in class TransientSolrCoreCache
public List<String> getNamesForCore(SolrCore core)
getNamesForCore
in class TransientSolrCoreCache
public void close()
close
in class TransientSolrCoreCache
public int getStatus(String coreName)
getStatus
in class TransientSolrCoreCache
public void setStatus(String coreName, int status)
setStatus
in class TransientSolrCoreCache
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.