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 prevState captures previous cluster state.
A joining node catching the cluster in an intermediate state will observe transitionReqId field to be
non-null, however the prevState 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 |
activeStateChanging() |
BaselineTopology |
baselineTopology() |
DiscoveryDataClusterState |
finish(boolean success)
Creates a non-transitional cluster state.
|
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 boolean activeStateChanging()
True if cluster active state change is in progress, false otherwise.public AffinityTopologyVersion transitionTopologyVersion()
public boolean active()
@Nullable public BaselineTopology baselineTopology()
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 Fabric : ver. 2.6.0 Release Date : July 10 2018