Package org.apache.solr.core
Class TransientSolrCoreCacheDefault
- java.lang.Object
-
- org.apache.solr.core.TransientSolrCoreCache
-
- org.apache.solr.core.TransientSolrCoreCacheDefault
-
public class TransientSolrCoreCacheDefault extends TransientSolrCoreCache
-
-
Field Summary
Fields Modifier and Type Field Description protected CoreContainer
coreContainer
protected Map<String,SolrCore>
transientCores
protected Map<String,CoreDescriptor>
transientDescriptors
-
Constructor Summary
Constructors Constructor Description TransientSolrCoreCacheDefault(CoreContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
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)
-
Methods inherited from class org.apache.solr.core.TransientSolrCoreCache
close
-
-
-
-
Field Detail
-
coreContainer
protected CoreContainer coreContainer
-
transientDescriptors
protected final Map<String,CoreDescriptor> transientDescriptors
-
-
Constructor Detail
-
TransientSolrCoreCacheDefault
public TransientSolrCoreCacheDefault(CoreContainer container)
- Parameters:
container
- The enclosing CoreContainer. It allows us to access everything we need.
-
-
Method Detail
-
prepareForShutdown
public Collection<SolrCore> prepareForShutdown()
- Specified by:
prepareForShutdown
in classTransientSolrCoreCache
-
getContainer
public CoreContainer getContainer()
- Specified by:
getContainer
in classTransientSolrCoreCache
-
addCore
public SolrCore addCore(String name, SolrCore core)
- Specified by:
addCore
in classTransientSolrCoreCache
-
getAllCoreNames
public Set<String> getAllCoreNames()
- Specified by:
getAllCoreNames
in classTransientSolrCoreCache
-
getLoadedCoreNames
public Set<String> getLoadedCoreNames()
- Specified by:
getLoadedCoreNames
in classTransientSolrCoreCache
-
removeCore
public SolrCore removeCore(String name)
- Specified by:
removeCore
in classTransientSolrCoreCache
-
getCore
public SolrCore getCore(String name)
- Specified by:
getCore
in classTransientSolrCoreCache
-
containsCore
public boolean containsCore(String name)
- Specified by:
containsCore
in classTransientSolrCoreCache
-
addTransientDescriptor
public void addTransientDescriptor(String rawName, CoreDescriptor cd)
- Specified by:
addTransientDescriptor
in classTransientSolrCoreCache
-
getTransientDescriptor
public CoreDescriptor getTransientDescriptor(String name)
- Specified by:
getTransientDescriptor
in classTransientSolrCoreCache
-
removeTransientDescriptor
public CoreDescriptor removeTransientDescriptor(String name)
- Specified by:
removeTransientDescriptor
in classTransientSolrCoreCache
-
getNamesForCore
public List<String> getNamesForCore(SolrCore core)
- Overrides:
getNamesForCore
in classTransientSolrCoreCache
-
getStatus
public int getStatus(String coreName)
- Specified by:
getStatus
in classTransientSolrCoreCache
-
setStatus
public void setStatus(String coreName, int status)
- Specified by:
setStatus
in classTransientSolrCoreCache
-
-