Class ShardStateAction.StartedShardUpdateTask
java.lang.Object
org.elasticsearch.cluster.action.shard.ShardStateAction.StartedShardUpdateTask
- All Implemented Interfaces:
ClusterStateTaskListener
- Enclosing class:
- ShardStateAction
public static class ShardStateAction.StartedShardUpdateTask
extends Object
implements ClusterStateTaskListener
-
Constructor Summary
ConstructorsConstructorDescriptionStartedShardUpdateTask(ShardStateAction.StartedShardEntry entry, ActionListener<TransportResponse.Empty> listener) -
Method Summary
Modifier and TypeMethodDescriptionvoidclusterStateProcessed(ClusterState oldState, ClusterState newState) Called when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners.getEntry()voidA callback for when task execution fails.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.ClusterStateTaskListener
onNoLongerMaster
-
Constructor Details
-
StartedShardUpdateTask
public StartedShardUpdateTask(ShardStateAction.StartedShardEntry entry, ActionListener<TransportResponse.Empty> listener)
-
-
Method Details
-
getEntry
-
onFailure
Description copied from interface:ClusterStateTaskListenerA callback for when task execution fails. Implementations of this callback must not throw exceptions: an exception thrown here is logged by the master service atERRORlevel and otherwise ignored, except in tests where it raises anAssertionError. If log-and-ignore is the right behaviour then implementations must do so themselves, typically using a more specific logger and at a less dramatic log level.- Specified by:
onFailurein interfaceClusterStateTaskListener
-
clusterStateProcessed
Description copied from interface:ClusterStateTaskListenerCalled when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners. Implementations of this callback must not throw exceptions: an exception thrown here is logged by the master service atERRORlevel and otherwise ignored, except in tests where it raises anAssertionError. If log-and-ignore is the right behaviour then implementations must do so themselves, typically using a more specific logger and at a less dramatic log level.- Specified by:
clusterStateProcessedin interfaceClusterStateTaskListener
-
toString
-