Package org.apache.solr.core
Class TransientSolrCores
- java.lang.Object
-
- org.apache.solr.core.SolrCores
-
- org.apache.solr.core.TransientSolrCores
-
@Deprecated(since="9.2") public class TransientSolrCores extends SolrCores
Deprecated.ASolrCores
that supportsCoreDescriptor.isTransient()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected TransientSolrCoreCache
transientSolrCoreCache
Deprecated.-
Fields inherited from class org.apache.solr.core.SolrCores
modifyLock
-
-
Constructor Summary
Constructors Constructor Description TransientSolrCores(CoreContainer container, int cacheSize)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addCoreDescriptor(CoreDescriptor p)
Deprecated.protected void
close()
Deprecated.List<String>
getAllCoreNames()
Deprecated.Gets a collection of all cores names, loaded and unloaded.CoreDescriptor
getCoreDescriptor(String coreName)
Deprecated.Return the CoreDescriptor corresponding to a given core name.List<CoreDescriptor>
getCoreDescriptors()
Deprecated.Get the CoreDescriptors for everySolrCore
managed here (permanent and transient, loaded and unloaded).List<String>
getLoadedCoreNames()
Deprecated.Gets the cores that are currently loaded, i.e.protected SolrCore
getLoadedCoreWithoutIncrement(String name)
Deprecated.(internal) Return a core that is already loaded, if it is.int
getNumAllCores()
Deprecated.Gets the total number of cores, including permanent and transient cores, loaded and unloaded cores.int
getNumLoadedTransientCores()
Deprecated.Gets the number of currently loaded transient cores.int
getNumUnloadedCores()
Deprecated.Gets the number of unloaded cores, including permanent and transient cores.boolean
isLoaded(String name)
Deprecated.SolrCore
putCore(CoreDescriptor cd, SolrCore core)
Deprecated.SolrCore
remove(String name)
Deprecated.void
removeCoreDescriptor(CoreDescriptor p)
Deprecated.-
Methods inherited from class org.apache.solr.core.SolrCores
getCoreFromAnyList, getCoreFromAnyList, getCores, getCoreToClose, getModifyLock, getNumLoadedPermanentCores, hasPendingCoreOps, isCoreLoading, isLoadedNotPendingClose, markCoreAsLoading, markCoreAsNotLoading, newSolrCores, queueCoreToClose, removeFromPendingOps, swap, waitAddPendingCoreOps, waitForLoadingCoresToFinish, waitForLoadingCoreToFinish
-
-
-
-
Field Detail
-
transientSolrCoreCache
protected final TransientSolrCoreCache transientSolrCoreCache
Deprecated.
-
-
Constructor Detail
-
TransientSolrCores
public TransientSolrCores(CoreContainer container, int cacheSize)
Deprecated.
-
-
Method Detail
-
addCoreDescriptor
public void addCoreDescriptor(CoreDescriptor p)
Deprecated.- Overrides:
addCoreDescriptor
in classSolrCores
-
removeCoreDescriptor
public void removeCoreDescriptor(CoreDescriptor p)
Deprecated.- Overrides:
removeCoreDescriptor
in classSolrCores
-
putCore
public SolrCore putCore(CoreDescriptor cd, SolrCore core)
Deprecated.
-
getLoadedCoreNames
public List<String> getLoadedCoreNames()
Deprecated.Description copied from class:SolrCores
Gets the cores that are currently loaded, i.e. cores that have 1: loadOnStartup=true and are either not-transient or, if transient, have been loaded and have not been aged out 2: loadOnStartup=false and have been loaded but either non-transient or have not been aged out.Put another way, this will not return any names of cores that are lazily loaded but have not been called for yet or are transient and either not loaded or have been swapped out.
- Overrides:
getLoadedCoreNames
in classSolrCores
- Returns:
- An unsorted list. This list is a new copy, it can be modified by the caller (e.g. it can be sorted).
-
getAllCoreNames
public List<String> getAllCoreNames()
Deprecated.Description copied from class:SolrCores
Gets a collection of all cores names, loaded and unloaded. For efficiency, prefer to checkSolrCores.getCoreDescriptor(String)
!= null instead ofSolrCores.getAllCoreNames()
.contains(String)- Overrides:
getAllCoreNames
in classSolrCores
- Returns:
- An unsorted list. This list is a new copy, it can be modified by the caller (e.g. it can be sorted).
-
getNumLoadedTransientCores
public int getNumLoadedTransientCores()
Deprecated.Description copied from class:SolrCores
Gets the number of currently loaded transient cores.- Overrides:
getNumLoadedTransientCores
in classSolrCores
-
getNumUnloadedCores
public int getNumUnloadedCores()
Deprecated.Description copied from class:SolrCores
Gets the number of unloaded cores, including permanent and transient cores.- Overrides:
getNumUnloadedCores
in classSolrCores
-
getNumAllCores
public int getNumAllCores()
Deprecated.Description copied from class:SolrCores
Gets the total number of cores, including permanent and transient cores, loaded and unloaded cores. Faster equivalent forSolrCores.getAllCoreNames()
.size().- Overrides:
getNumAllCores
in classSolrCores
-
getLoadedCoreWithoutIncrement
protected SolrCore getLoadedCoreWithoutIncrement(String name)
Deprecated.Description copied from class:SolrCores
(internal) Return a core that is already loaded, if it is. NOT incremented!- Overrides:
getLoadedCoreWithoutIncrement
in classSolrCores
-
getCoreDescriptor
public CoreDescriptor getCoreDescriptor(String coreName)
Deprecated.Description copied from class:SolrCores
Return the CoreDescriptor corresponding to a given core name. Blocks if the SolrCore is still loading until it is ready.- Overrides:
getCoreDescriptor
in classSolrCores
- Parameters:
coreName
- the name of the core- Returns:
- the CoreDescriptor
-
getCoreDescriptors
public List<CoreDescriptor> getCoreDescriptors()
Deprecated.Description copied from class:SolrCores
Get the CoreDescriptors for everySolrCore
managed here (permanent and transient, loaded and unloaded).- Overrides:
getCoreDescriptors
in classSolrCores
- Returns:
- An unordered list copy. This list can be modified by the caller (e.g. sorted).
-
-