public abstract class TransientSolrCoreCache extends Object
Constructor and Description |
---|
TransientSolrCoreCache() |
Modifier and Type | Method and Description |
---|---|
abstract SolrCore |
addCore(String name,
SolrCore core)
Adds the newly-opened core to the list of open cores.
|
abstract void |
addTransientDescriptor(String rawName,
CoreDescriptor cd)
Adds a new
CoreDescriptor . |
void |
close()
Called in order to free resources.
|
abstract boolean |
containsCore(String name)
Returns whether the cache contains the named core.
|
abstract Set<String> |
getAllCoreNames()
Returns the names of all possible cores, whether they are currently loaded or not.
|
abstract CoreContainer |
getContainer()
Gets the core container that encloses this cache.
|
abstract SolrCore |
getCore(String name)
Gets the core associated with the name.
|
abstract Set<String> |
getLoadedCoreNames()
Returns the names of all currently loaded cores.
|
abstract int |
getStatus(String coreName)
Gets a custom status for the given core name.
|
abstract CoreDescriptor |
getTransientDescriptor(String name)
Gets the
CoreDescriptor for a transient core (loaded or unloaded). |
Collection<CoreDescriptor> |
getTransientDescriptors()
Gets the
CoreDescriptor for all transient cores (loaded and unloaded). |
abstract Collection<SolrCore> |
prepareForShutdown()
This method will be called when the container is to be shut down.
|
abstract SolrCore |
removeCore(String name)
Removes a core from the internal structures, presumably it being closed.
|
abstract CoreDescriptor |
removeTransientDescriptor(String name)
Removes a
CoreDescriptor from the list of transient cores descriptors. |
abstract void |
setStatus(String coreName,
int status)
Sets a custom status for the given core name.
|
public abstract CoreContainer getContainer()
public abstract SolrCore addCore(String name, SolrCore core)
public abstract Set<String> getAllCoreNames()
public abstract Set<String> getLoadedCoreNames()
public abstract SolrCore removeCore(String name)
public abstract SolrCore getCore(String name)
public abstract boolean containsCore(String name)
public abstract Collection<SolrCore> prepareForShutdown()
public abstract void addTransientDescriptor(String rawName, CoreDescriptor cd)
CoreDescriptor
.
This method will only be called during core discovery at startup.public abstract CoreDescriptor getTransientDescriptor(String name)
CoreDescriptor
for a transient core (loaded or unloaded).
This method is used when opening cores and the like. If you want to change a core's descriptor,
override this method and return the current core descriptor.public Collection<CoreDescriptor> getTransientDescriptors()
CoreDescriptor
for all transient cores (loaded and unloaded).public abstract CoreDescriptor removeTransientDescriptor(String name)
CoreDescriptor
from the list of transient cores descriptors.public void close()
public abstract int getStatus(String coreName)
public abstract void setStatus(String coreName, int status)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.