Package org.elasticsearch.cluster
Interface ClusterStateTaskListener
-
- All Known Subinterfaces:
AckedClusterStateTaskListener
- All Known Implementing Classes:
AckedClusterStateUpdateTask
,ClusterStateUpdateTask
,LocalClusterUpdateTask
,ShardStateAction.ShardStartedClusterStateTaskExecutor
,ZenDiscovery.NodeRemovalClusterStateTaskExecutor
public interface ClusterStateTaskListener
-
-
Method Summary
Modifier and Type Method Description 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.void
onFailure(java.lang.String source, java.lang.Exception e)
A callback called when execute fails.default void
onNoLongerMaster(java.lang.String source)
called when the task was rejected because the local node is no longer master.
-
-
-
Method Detail
-
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.
-
-