/** * Instantiates a new cluster changed event. * * @param source the source * @param state the state * @param previousState the previous state */ public ClusterChangedEvent(String source, ClusterState state, ClusterState previousState) { this.source = source; this.state = state; this.previousState = previousState; this.nodesDelta = state.nodes().delta(previousState.nodes()); }
/** * Local node master. * * @return true, if successful */ public boolean localNodeMaster() { return state.nodes().localNodeMaster(); }