Class ShardStateAction.ShardFailedClusterStateTaskExecutor
java.lang.Object
org.elasticsearch.cluster.action.shard.ShardStateAction.ShardFailedClusterStateTaskExecutor
- All Implemented Interfaces:
ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
- Enclosing class:
- ShardStateAction
public static class ShardStateAction.ShardFailedClusterStateTaskExecutor
extends Object
implements ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.ClusterStateTaskExecutor
ClusterStateTaskExecutor.ClusterTasksResult<T>, ClusterStateTaskExecutor.TaskResult
-
Constructor Summary
ConstructorDescriptionShardFailedClusterStateTaskExecutor(AllocationService allocationService, RerouteService rerouteService, Supplier<Priority> prioritySupplier, org.apache.logging.log4j.Logger logger)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clusterStatePublished(ClusterChangedEvent clusterChangedEvent)
Callback invoked after new cluster state is published.execute(ClusterState currentState, List<ShardStateAction.FailedShardEntry> tasks)
Update the cluster state based on the current state and the given tasks.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.cluster.ClusterStateTaskExecutor
describeTasks, runOnlyOnMaster
-
Constructor Details
-
ShardFailedClusterStateTaskExecutor
public ShardFailedClusterStateTaskExecutor(AllocationService allocationService, RerouteService rerouteService, Supplier<Priority> prioritySupplier, org.apache.logging.log4j.Logger logger)
-
-
Method Details
-
execute
public ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.FailedShardEntry> execute(ClusterState currentState, List<ShardStateAction.FailedShardEntry> tasks) throws ExceptionDescription copied from interface:ClusterStateTaskExecutor
Update the cluster state based on the current state and the given tasks. Return the *same instance* if no state should be changed.- Specified by:
execute
in interfaceClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
- Throws:
Exception
-
clusterStatePublished
Description copied from interface:ClusterStateTaskExecutor
Callback invoked after new cluster state is published. Note that this method is not invoked if the cluster state was not updated. Note that this method will be executed using system context.- Specified by:
clusterStatePublished
in interfaceClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
- Parameters:
clusterChangedEvent
- the change event for this cluster state change, containing both old and new states
-