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().
| Modifier and Type | Method and Description |
|---|---|
boolean |
active() |
boolean |
baselineChanged() |
BaselineTopology |
baselineTopology() |
DiscoveryDataClusterState |
finish(boolean success)
Creates a non-transitional cluster state.
|
boolean |
hasBaselineTopology() |
BaselineTopology |
previousBaselineTopology() |
void |
setTransitionResult(UUID reqId,
boolean active)
Discovery cluster state is changed asynchronously by discovery message, this methods changes local status
for public API calls.
|
String |
toString() |
boolean |
transition() |
Exception |
transitionError() |
void |
transitionError(Exception ex) |
Set<UUID> |
transitionNodes() |
UUID |
transitionRequestId() |
Boolean |
transitionResult() |
AffinityTopologyVersion |
transitionTopologyVersion() |
@Nullable public Boolean transitionResult()
public void setTransitionResult(UUID reqId, boolean active)
reqId - Request ID.active - 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 AffinityTopologyVersion transitionTopologyVersion()
public boolean active()
@Nullable public BaselineTopology baselineTopology()
@Nullable public 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 Exception transitionError()
public void transitionError(Exception ex)
ex - Exceptionpublic DiscoveryDataClusterState finish(boolean success)
success - Transition success status.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019