public class ChangeGlobalStateMessage extends Object implements DiscoveryCustomMessage
| Constructor and Description |
|---|
ChangeGlobalStateMessage(UUID reqId,
UUID initiatingNodeId,
List<StoredCacheData> storedCfgs,
boolean activate,
BaselineTopology baselineTopology,
boolean forceChangeBaselineTopology,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
boolean |
activate() |
BaselineTopology |
baselineTopology() |
DiscoCache |
createDiscoCache(GridDiscoveryManager mgr,
AffinityTopologyVersion topVer,
DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.
|
ExchangeActions |
exchangeActions() |
boolean |
forceChangeBaselineTopology() |
IgniteUuid |
id() |
UUID |
initiatorNodeId() |
boolean |
isMutable() |
UUID |
requestId() |
boolean |
stopProcess()
|
List<StoredCacheData> |
storedCacheConfigurations() |
long |
timestamp() |
String |
toString() |
public ChangeGlobalStateMessage(UUID reqId, UUID initiatingNodeId, @Nullable List<StoredCacheData> storedCfgs, boolean activate, BaselineTopology baselineTopology, boolean forceChangeBaselineTopology, long timestamp)
reqId - State change request ID.initiatingNodeId - Node initiated state change.storedCfgs - Configurations read from persistent store.activate - New cluster state.@Nullable public List<StoredCacheData> storedCacheConfigurations()
@Nullable public ExchangeActions exchangeActions()
null exchange is not needed.public IgniteUuid id()
id in interface DiscoveryCustomMessage@Nullable public DiscoveryCustomMessage ackMessage()
ackMessage in interface DiscoveryCustomMessagenull if ack is not required.public boolean isMutable()
isMutable in interface DiscoveryCustomMessageTrue if message can be modified during listener notification. Changes will be sent to next nodes.public boolean stopProcess()
stopProcess in interface DiscoveryCustomMessageTrue if message should not be sent to others nodes after it was processed on coordinator.public DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
createDiscoCache in interface DiscoveryCustomMessagemgr - Discovery manager.topVer - New topology version.discoCache - Current discovery cache.public UUID initiatorNodeId()
public boolean activate()
public boolean forceChangeBaselineTopology()
@Nullable public BaselineTopology baselineTopology()
public long timestamp()
public UUID requestId()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018