public class ChangeGlobalStateMessage extends Object implements DiscoveryCustomMessage
| Constructor and Description |
|---|
ChangeGlobalStateMessage(UUID reqId,
UUID initiatingNodeId,
@Nullable List<StoredCacheData> storedCfgs,
ClusterState state,
boolean forceDeactivation,
BaselineTopology baselineTopology,
boolean forceChangeBaselineTopology,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
boolean |
activate()
Deprecated.
Use
state() instead. |
@Nullable BaselineTopology |
baselineTopology() |
DiscoCache |
createDiscoCache(GridDiscoveryManager mgr,
AffinityTopologyVersion topVer,
DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.
|
@Nullable ExchangeActions |
exchangeActions() |
boolean |
forceChangeBaselineTopology() |
boolean |
forceDeactivation() |
IgniteUuid |
id() |
UUID |
initiatorNodeId() |
boolean |
isMutable() |
UUID |
requestId() |
@Nullable ServiceDeploymentActions |
servicesDeploymentActions() |
void |
servicesDeploymentActions(ServiceDeploymentActions serviceDeploymentActions) |
ClusterState |
state() |
@Nullable List<StoredCacheData> |
storedCacheConfigurations() |
long |
timestamp() |
String |
toString() |
public ChangeGlobalStateMessage(UUID reqId, UUID initiatingNodeId, @Nullable @Nullable List<StoredCacheData> storedCfgs, ClusterState state, boolean forceDeactivation, BaselineTopology baselineTopology, boolean forceChangeBaselineTopology, long timestamp)
reqId - State change request ID.initiatingNodeId - Node initiated state change.storedCfgs - Configurations read from persistent store.state - New cluster state.forceDeactivation - If true, cluster deactivation will be forced.baselineTopology - Baseline topology.forceChangeBaselineTopology - Force change baseline topology flag.timestamp - Timestamp.@Nullable public @Nullable List<StoredCacheData> storedCacheConfigurations()
@Nullable public @Nullable ExchangeActions exchangeActions()
null exchange is not needed.@Nullable public @Nullable ServiceDeploymentActions servicesDeploymentActions()
public void servicesDeploymentActions(ServiceDeploymentActions serviceDeploymentActions)
serviceDeploymentActions - Services deployment actions to be processed on services deployment process.public IgniteUuid id()
id in interface DiscoveryCustomMessage@Nullable public @Nullable 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 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()
@Deprecated public boolean activate()
state() instead.False if new cluster state is ClusterState.INACTIVE, and True otherwise.public ClusterState state()
public boolean forceChangeBaselineTopology()
@Nullable public @Nullable BaselineTopology baselineTopology()
public boolean forceDeactivation()
True if cluster deactivation will be forced. False otherwise.ClusterState.INACTIVEpublic long timestamp()
public UUID requestId()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021