Class ChangeGlobalStateFinishMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cluster.ChangeGlobalStateFinishMessage
-
- All Implemented Interfaces:
Serializable,DiscoveryCustomMessage
public class ChangeGlobalStateFinishMessage extends Object implements DiscoveryCustomMessage
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeGlobalStateFinishMessage(UUID reqId, ClusterState state, Boolean transitionRes)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @Nullable DiscoveryCustomMessageackMessage()Called when custom message has been handled by all nodes.booleanclusterActive()Deprecated.Usestate()instead.@Nullable DiscoCachecreateDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)Creates new discovery cache if message caused topology version change.IgniteUuidid()booleanisMutable()UUIDrequestId()ClusterStatestate()booleansuccess()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage
stopProcess
-
-
-
-
Constructor Detail
-
ChangeGlobalStateFinishMessage
public ChangeGlobalStateFinishMessage(UUID reqId, ClusterState state, Boolean transitionRes)
- Parameters:
reqId- State change request ID.state- New cluster state.
-
-
Method Detail
-
requestId
public UUID requestId()
- Returns:
- State change request ID.
-
clusterActive
@Deprecated public boolean clusterActive()
Deprecated.Usestate()instead.- Returns:
- New cluster state.
-
success
public boolean success()
- Returns:
- Transition success status.
-
state
public ClusterState state()
- Returns:
- New cluster state.
-
id
public IgniteUuid id()
- Specified by:
idin interfaceDiscoveryCustomMessage- Returns:
- Unique custom message ID.
-
ackMessage
@Nullable public @Nullable DiscoveryCustomMessage ackMessage()
Called when custom message has been handled by all nodes.- Specified by:
ackMessagein interfaceDiscoveryCustomMessage- Returns:
- Ack message or
nullif ack is not required.
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceDiscoveryCustomMessage- Returns:
Trueif message can be modified during listener notification. Changes will be sent to next nodes.
-
createDiscoCache
@Nullable public @Nullable DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.- Specified by:
createDiscoCachein interfaceDiscoveryCustomMessage- Parameters:
mgr- Discovery manager.topVer- New topology version.discoCache- Current discovery cache.- Returns:
- Reused discovery cache.
-
-