public class DiscoveryDataClusterState extends Object implements Serializable
This object also captures a transitional cluster state, when one or more fields are changing. In this case,
a transitionReqId field is set to a non-null value and previousBaselineTopology captures previous cluster state.
A joining node catching the cluster in an intermediate state will observe transitionReqId field to be
non-null, however the previousBaselineTopology will not be sent to the joining node.
TODO https://issues.apache.org/jira/browse/IGNITE-7640 This class must be immutable, transitionRes must be set by calling finish().
public ClusterState lastState()
@Nullable public @Nullable ClusterState transitionResult()
public void setTransitionResult(UUID reqId, ClusterState state)
reqId - Request ID.state - New cluster state.public UUID transitionRequestId()
public boolean transition()
True if any cluster state change is in progress (e.g. active state change, baseline change).public boolean previouslyActive()
public AffinityTopologyVersion transitionTopologyVersion()
@Deprecated public boolean active()
state() instead.public ClusterState state()
public long lastStateChangeTime()
@Nullable public @Nullable BaselineTopology baselineTopology()
@Nullable public @Nullable BaselineTopology previousBaselineTopology()
public boolean baselineChanged()
True If baseLine changed, False if not.public boolean hasBaselineTopology()
True if baseline topology is set in the cluster. False otherwise.public Set<UUID> transitionNodes()
@Nullable public @Nullable Exception transitionError()
public void transitionError(Exception ex)
ex - Exceptionpublic boolean localBaselineAutoAdjustment()
true if current state was created as a result of local baseline autoadjustment with zero timeout
on in-memory cluster.public void localBaselineAutoAdjustment(boolean adjusted)
adjusted - Flag value.localBaselineAutoAdjustment()public DiscoveryDataClusterState finish(boolean success)
success - Transition success status.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021