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.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 Modifier and Type Field Description static String
PLUGIN_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 void
configure(InactiveShardRemoverConfig cfg)
This is invoked soon after the Object is initialized.String
getName()
Unique name of this singleton.ClusterSingleton.State
getState()
Returns the current state of the component.void
start()
Start the operation of the component.void
stop()
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:ConfigurablePlugin
This is invoked soon after the Object is initialized.- Specified by:
configure
in interfaceConfigurablePlugin<InactiveShardRemoverConfig>
- Parameters:
cfg
- value deserialized from JSON
-
getName
public String getName()
Description copied from interface:ClusterSingleton
Unique name of this singleton. Used for registration.- Specified by:
getName
in interfaceClusterSingleton
-
getState
public ClusterSingleton.State getState()
Description copied from interface:ClusterSingleton
Returns the current state of the component.- Specified by:
getState
in interfaceClusterSingleton
-
start
public void start() throws Exception
Description copied from interface:ClusterSingleton
Start 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:
start
in interfaceClusterSingleton
- Throws:
Exception
- on startup errors. The component should revert to the STOPPED state.
-
stop
public void stop()
Description copied from interface:ClusterSingleton
Stop 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:
stop
in interfaceClusterSingleton
-
-