ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
public static class ShardStateAction.ShardFailedClusterStateTaskExecutor extends java.lang.Object implements ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
ClusterStateTaskExecutor.ClusterTasksResult<T>, ClusterStateTaskExecutor.TaskResult
Constructor | Description |
---|---|
ShardFailedClusterStateTaskExecutor(AllocationService allocationService,
RoutingService routingService,
org.apache.logging.log4j.Logger logger) |
Modifier and Type | Method | Description |
---|---|---|
void |
clusterStatePublished(ClusterChangedEvent clusterChangedEvent) |
Callback invoked after new cluster state is published.
|
ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.FailedShardEntry> |
execute(ClusterState currentState,
java.util.List<ShardStateAction.FailedShardEntry> tasks) |
Update the cluster state based on the current state and the given tasks.
|
describeTasks, runOnlyOnMaster
public ShardFailedClusterStateTaskExecutor(AllocationService allocationService, RoutingService routingService, org.apache.logging.log4j.Logger logger)
public ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.FailedShardEntry> execute(ClusterState currentState, java.util.List<ShardStateAction.FailedShardEntry> tasks) throws java.lang.Exception
ClusterStateTaskExecutor
execute
in interface ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
java.lang.Exception
public void clusterStatePublished(ClusterChangedEvent clusterChangedEvent)
ClusterStateTaskExecutor
clusterStatePublished
in interface ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>
clusterChangedEvent
- the change event for this cluster state change, containing
both old and new states