Class InactiveShardRemover
- java.lang.Object
-
- org.apache.solr.cluster.maintenance.InactiveShardRemover
-
- All Implemented Interfaces:
ConfigurablePlugin<InactiveShardRemoverConfig>,ClusterSingleton
public class InactiveShardRemover extends Object implements ClusterSingleton, ConfigurablePlugin<InactiveShardRemoverConfig>
This Cluster Singleton can be configured to periodically find and removeSlice.State.INACTIVEShards that are left behind after a Shard is split
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.cloud.ClusterSingleton
ClusterSingleton.State
-
-
Field Summary
Fields Modifier and Type Field Description static StringPLUGIN_NAME
-
Constructor Summary
Constructors Constructor Description InactiveShardRemover(CoreContainer cc)Constructor invoked via ReflectionInactiveShardRemover(CoreContainer cc, org.apache.solr.cluster.maintenance.InactiveShardRemover.DeleteActor deleteActor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(InactiveShardRemoverConfig cfg)This is invoked soon after the Object is initialized.StringgetName()Unique name of this singleton.ClusterSingleton.StategetState()Returns the current state of the component.voidstart()Start the operation of the component.voidstop()Stop the operation of the component.
-
-
-
Field Detail
-
PLUGIN_NAME
public static final String PLUGIN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InactiveShardRemover
public InactiveShardRemover(CoreContainer cc)
Constructor invoked via Reflection
-
InactiveShardRemover
public InactiveShardRemover(CoreContainer cc, org.apache.solr.cluster.maintenance.InactiveShardRemover.DeleteActor deleteActor)
-
-
Method Detail
-
configure
public void configure(InactiveShardRemoverConfig cfg)
Description copied from interface:ConfigurablePluginThis is invoked soon after the Object is initialized.- Specified by:
configurein interfaceConfigurablePlugin<InactiveShardRemoverConfig>- Parameters:
cfg- value deserialized from JSON
-
getName
public String getName()
Description copied from interface:ClusterSingletonUnique name of this singleton. Used for registration.- Specified by:
getNamein interfaceClusterSingleton
-
getState
public ClusterSingleton.State getState()
Description copied from interface:ClusterSingletonReturns the current state of the component.- Specified by:
getStatein interfaceClusterSingleton
-
start
public void start() throws ExceptionDescription copied from interface:ClusterSingletonStart the operation of the component. Initially this method should set the state to STARTING, and on success it should set the state to RUNNING.- Specified by:
startin interfaceClusterSingleton- Throws:
Exception- on startup errors. The component should revert to the STOPPED state.
-
stop
public void stop()
Description copied from interface:ClusterSingletonStop the operation of the component. Initially this method should set the state to STOPPING, and on return it should set the state to STOPPED. Components should also avoid holding any resource when in STOPPED state.- Specified by:
stopin interfaceClusterSingleton
-
-