コード例 #1
0
	/**
	 * 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());
	}
コード例 #2
0
	/**
	 * Local node master.
	 *
	 * @return true, if successful
	 */
	public boolean localNodeMaster() {
		return state.nodes().localNodeMaster();
	}