Class ShardStateAction.ShardStartedClusterStateTaskExecutor
- java.lang.Object
-
- org.elasticsearch.cluster.action.shard.ShardStateAction.ShardStartedClusterStateTaskExecutor
-
- All Implemented Interfaces:
ClusterStateTaskExecutor<ShardStateAction.StartedShardEntry>
,ClusterStateTaskListener
- Enclosing class:
- ShardStateAction
public static class ShardStateAction.ShardStartedClusterStateTaskExecutor extends java.lang.Object implements ClusterStateTaskExecutor<ShardStateAction.StartedShardEntry>, ClusterStateTaskListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.ClusterStateTaskExecutor
ClusterStateTaskExecutor.ClusterTasksResult<T>, ClusterStateTaskExecutor.TaskResult
-
-
Constructor Summary
Constructors Constructor Description ShardStartedClusterStateTaskExecutor(AllocationService allocationService, org.apache.logging.log4j.Logger logger)
-
Method Summary
Modifier and Type Method Description ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.StartedShardEntry>
execute(ClusterState currentState, java.util.List<ShardStateAction.StartedShardEntry> tasks)
Update the cluster state based on the current state and the given tasks.void
onFailure(java.lang.String source, java.lang.Exception e)
A callback called when execute fails.-
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
clusterStatePublished, describeTasks, runOnlyOnMaster
-
Methods inherited from interface org.elasticsearch.cluster.ClusterStateTaskListener
clusterStateProcessed, onNoLongerMaster
-
-
-
-
Constructor Detail
-
ShardStartedClusterStateTaskExecutor
public ShardStartedClusterStateTaskExecutor(AllocationService allocationService, org.apache.logging.log4j.Logger logger)
-
-
Method Detail
-
execute
public ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.StartedShardEntry> execute(ClusterState currentState, java.util.List<ShardStateAction.StartedShardEntry> tasks) throws java.lang.Exception
Description 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.StartedShardEntry>
- Throws:
java.lang.Exception
-
onFailure
public void onFailure(java.lang.String source, java.lang.Exception e)
Description copied from interface:ClusterStateTaskListener
A callback called when execute fails.- Specified by:
onFailure
in interfaceClusterStateTaskListener
-
-