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, runOnlyOnMasterpublic 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
ClusterStateTaskExecutorexecute in interface ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>java.lang.Exceptionpublic void clusterStatePublished(ClusterChangedEvent clusterChangedEvent)
ClusterStateTaskExecutorclusterStatePublished in interface ClusterStateTaskExecutor<ShardStateAction.FailedShardEntry>clusterChangedEvent - the change event for this cluster state change, containing
both old and new states