Package org.elasticsearch.cluster
Interface ClusterStateTaskListener
- All Known Subinterfaces:
AckedClusterStateTaskListener
- All Known Implementing Classes:
AckedClusterStateUpdateTask,ClusterStateUpdateTask,LocalClusterUpdateTask,NodeRemovalClusterStateTaskExecutor,ShardStateAction.ShardStartedClusterStateTaskExecutor
public interface ClusterStateTaskListener
-
Method Summary
Modifier and Type Method Description default voidclusterStateProcessed(java.lang.String source, ClusterState oldState, ClusterState newState)Called when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners.voidonFailure(java.lang.String source, java.lang.Exception e)A callback called when execute fails.default voidonNoLongerMaster(java.lang.String source)called when the task was rejected because the local node is no longer master.
-
Method Details
-
onFailure
void onFailure(java.lang.String source, java.lang.Exception e)A callback called when execute fails. -
onNoLongerMaster
default void onNoLongerMaster(java.lang.String source)called when the task was rejected because the local node is no longer master. Used only for tasks submitted toMasterService. -
clusterStateProcessed
default void clusterStateProcessed(java.lang.String source, ClusterState oldState, ClusterState newState)Called when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners.
-