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.ASolrCoresthat supportsCoreDescriptor.isTransient().
-
-
Field Summary
Fields Modifier and Type Field Description protected TransientSolrCoreCachetransientSolrCoreCacheDeprecated.-
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 voidaddCoreDescriptor(CoreDescriptor p)Deprecated.protected voidclose()Deprecated.List<String>getAllCoreNames()Deprecated.Gets a collection of all cores names, loaded and unloaded.CoreDescriptorgetCoreDescriptor(String coreName)Deprecated.Return the CoreDescriptor corresponding to a given core name.List<CoreDescriptor>getCoreDescriptors()Deprecated.Get the CoreDescriptors for everySolrCoremanaged here (permanent and transient, loaded and unloaded).List<String>getLoadedCoreNames()Deprecated.Gets the cores that are currently loaded, i.e.protected SolrCoregetLoadedCoreWithoutIncrement(String name)Deprecated.(internal) Return a core that is already loaded, if it is.intgetNumAllCores()Deprecated.Gets the total number of cores, including permanent and transient cores, loaded and unloaded cores.intgetNumLoadedTransientCores()Deprecated.Gets the number of currently loaded transient cores.intgetNumUnloadedCores()Deprecated.Gets the number of unloaded cores, including permanent and transient cores.booleanisLoaded(String name)Deprecated.SolrCoreputCore(CoreDescriptor cd, SolrCore core)Deprecated.SolrCoreremove(String name)Deprecated.voidremoveCoreDescriptor(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:
addCoreDescriptorin classSolrCores
-
removeCoreDescriptor
public void removeCoreDescriptor(CoreDescriptor p)
Deprecated.- Overrides:
removeCoreDescriptorin classSolrCores
-
putCore
public SolrCore putCore(CoreDescriptor cd, SolrCore core)
Deprecated.
-
getLoadedCoreNames
public List<String> getLoadedCoreNames()
Deprecated.Description copied from class:SolrCoresGets 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:
getLoadedCoreNamesin 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:SolrCoresGets a collection of all cores names, loaded and unloaded. For efficiency, prefer to checkSolrCores.getCoreDescriptor(String)!= null instead ofSolrCores.getAllCoreNames().contains(String)- Overrides:
getAllCoreNamesin 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:SolrCoresGets the number of currently loaded transient cores.- Overrides:
getNumLoadedTransientCoresin classSolrCores
-
getNumUnloadedCores
public int getNumUnloadedCores()
Deprecated.Description copied from class:SolrCoresGets the number of unloaded cores, including permanent and transient cores.- Overrides:
getNumUnloadedCoresin classSolrCores
-
getNumAllCores
public int getNumAllCores()
Deprecated.Description copied from class:SolrCoresGets the total number of cores, including permanent and transient cores, loaded and unloaded cores. Faster equivalent forSolrCores.getAllCoreNames().size().- Overrides:
getNumAllCoresin 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:
getLoadedCoreWithoutIncrementin classSolrCores
-
getCoreDescriptor
public CoreDescriptor getCoreDescriptor(String coreName)
Deprecated.Description copied from class:SolrCoresReturn the CoreDescriptor corresponding to a given core name. Blocks if the SolrCore is still loading until it is ready.- Overrides:
getCoreDescriptorin classSolrCores- Parameters:
coreName- the name of the core- Returns:
- the CoreDescriptor
-
getCoreDescriptors
public List<CoreDescriptor> getCoreDescriptors()
Deprecated.Description copied from class:SolrCoresGet the CoreDescriptors for everySolrCoremanaged here (permanent and transient, loaded and unloaded).- Overrides:
getCoreDescriptorsin classSolrCores- Returns:
- An unordered list copy. This list can be modified by the caller (e.g. sorted).
-
-