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 CoreContainercoreContainerprotected Map<String,SolrCore>transientCoresprotected 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 SolrCoreaddCore(String name, SolrCore core)voidaddTransientDescriptor(String rawName, CoreDescriptor cd)booleancontainsCore(String name)Set<String>getAllCoreNames()CoreContainergetContainer()SolrCoregetCore(String name)Set<String>getLoadedCoreNames()List<String>getNamesForCore(SolrCore core)intgetStatus(String coreName)CoreDescriptorgetTransientDescriptor(String name)Collection<SolrCore>prepareForShutdown()SolrCoreremoveCore(String name)CoreDescriptorremoveTransientDescriptor(String name)voidsetStatus(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:
prepareForShutdownin classTransientSolrCoreCache
-
getContainer
public CoreContainer getContainer()
- Specified by:
getContainerin classTransientSolrCoreCache
-
addCore
public SolrCore addCore(String name, SolrCore core)
- Specified by:
addCorein classTransientSolrCoreCache
-
getAllCoreNames
public Set<String> getAllCoreNames()
- Specified by:
getAllCoreNamesin classTransientSolrCoreCache
-
getLoadedCoreNames
public Set<String> getLoadedCoreNames()
- Specified by:
getLoadedCoreNamesin classTransientSolrCoreCache
-
removeCore
public SolrCore removeCore(String name)
- Specified by:
removeCorein classTransientSolrCoreCache
-
getCore
public SolrCore getCore(String name)
- Specified by:
getCorein classTransientSolrCoreCache
-
containsCore
public boolean containsCore(String name)
- Specified by:
containsCorein classTransientSolrCoreCache
-
addTransientDescriptor
public void addTransientDescriptor(String rawName, CoreDescriptor cd)
- Specified by:
addTransientDescriptorin classTransientSolrCoreCache
-
getTransientDescriptor
public CoreDescriptor getTransientDescriptor(String name)
- Specified by:
getTransientDescriptorin classTransientSolrCoreCache
-
removeTransientDescriptor
public CoreDescriptor removeTransientDescriptor(String name)
- Specified by:
removeTransientDescriptorin classTransientSolrCoreCache
-
getNamesForCore
public List<String> getNamesForCore(SolrCore core)
- Overrides:
getNamesForCorein classTransientSolrCoreCache
-
getStatus
public int getStatus(String coreName)
- Specified by:
getStatusin classTransientSolrCoreCache
-
setStatus
public void setStatus(String coreName, int status)
- Specified by:
setStatusin classTransientSolrCoreCache
-
-