Class NodeAndClusterIdStateListener

java.lang.Object
org.elasticsearch.common.logging.NodeAndClusterIdStateListener
All Implemented Interfaces:
ClusterStateObserver.Listener

public class NodeAndClusterIdStateListener extends Object implements ClusterStateObserver.Listener
The NodeAndClusterIdStateListener listens to cluster state changes and ONLY when receives the first update it sets the clusterUUID and nodeID in log4j pattern converter NodeAndClusterIdConverter. Once the first update is received, it will automatically be de-registered from subsequent updates.