Package org.elasticsearch.cluster
Interface LocalNodeMasterListener
- All Superinterfaces:
ClusterStateListener
Enables listening to master changes events of the local node (when the local node becomes the master, and when the local
node cease being a master).
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Called when cluster state changes.void
Called when the local node used to be the master, a new master was elected and it's no longer the local node.void
onMaster()
Called when local node is elected to be the master
-
Method Details
-
onMaster
void onMaster()Called when local node is elected to be the master -
offMaster
void offMaster()Called when the local node used to be the master, a new master was elected and it's no longer the local node. -
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.- Specified by:
clusterChanged
in interfaceClusterStateListener
-