public class CacheAffinityChangeMessage extends Object implements DiscoveryCustomMessage
| Constructor and Description |
|---|
CacheAffinityChangeMessage(AffinityTopologyVersion topVer,
Map<Integer,Map<Integer,List<UUID>>> assignmentChange,
Map<Integer,IgniteUuid> cacheDeploymentIds)
Constructor used when message is created after cache rebalance finished.
|
CacheAffinityChangeMessage(GridDhtPartitionExchangeId exchId,
GridDhtPartitionsFullMessage partsMsg,
Map<Integer,Map<Integer,List<UUID>>> assignmentChange)
Constructor used when message is created to finish exchange.
|
| Modifier and Type | Method and Description |
|---|---|
DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
Map<Integer,Map<Integer,List<UUID>>> |
assignmentChange() |
Map<Integer,IgniteUuid> |
cacheDeploymentIds() |
GridDhtPartitionExchangeId |
exchangeId() |
boolean |
exchangeNeeded() |
void |
exchangeNeeded(boolean exchangeNeeded) |
IgniteUuid |
id() |
boolean |
isMutable() |
GridDhtPartitionsFullMessage |
partitionsMessage() |
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
public CacheAffinityChangeMessage(AffinityTopologyVersion topVer, Map<Integer,Map<Integer,List<UUID>>> assignmentChange, Map<Integer,IgniteUuid> cacheDeploymentIds)
topVer - Topology version.assignmentChange - Assignment change.cacheDeploymentIds - Cache deployment ID.public CacheAffinityChangeMessage(GridDhtPartitionExchangeId exchId, GridDhtPartitionsFullMessage partsMsg, Map<Integer,Map<Integer,List<UUID>>> assignmentChange)
exchId - Exchange ID.partsMsg - Partitions messages.assignmentChange - Assignment change.public Map<Integer,IgniteUuid> cacheDeploymentIds()
public boolean exchangeNeeded()
True if request should trigger partition exchange.public void exchangeNeeded(boolean exchangeNeeded)
exchangeNeeded - True if request should trigger partition exchange.public GridDhtPartitionsFullMessage partitionsMessage()
@Nullable public Map<Integer,Map<Integer,List<UUID>>> assignmentChange()
@Nullable public GridDhtPartitionExchangeId exchangeId()
public AffinityTopologyVersion topologyVersion()
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 send to next nodes.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017