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 remove
Slice.State.INACTIVE Shards 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 -
Constructor Summary
ConstructorsConstructorDescriptionConstructor invoked via ReflectionInactiveShardRemover(CoreContainer cc, org.apache.solr.cluster.maintenance.InactiveShardRemover.DeleteActor deleteActor) -
Method Summary
-
Field Details
-
PLUGIN_NAME
- See Also:
-
-
Constructor Details
-
InactiveShardRemover
Constructor invoked via Reflection -
InactiveShardRemover
public InactiveShardRemover(CoreContainer cc, org.apache.solr.cluster.maintenance.InactiveShardRemover.DeleteActor deleteActor)
-
-
Method Details
-
configure
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
Description copied from interface:ClusterSingletonUnique name of this singleton. Used for registration.- Specified by:
getNamein interfaceClusterSingleton
-
getState
Description copied from interface:ClusterSingletonReturns the current state of the component.- Specified by:
getStatein interfaceClusterSingleton
-
start
Description 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
-