public class GridDhtPartitionDemander extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GridDhtPartitionDemander.RebalanceFuture |
| Constructor and Description |
|---|
GridDhtPartitionDemander(CacheGroupContext grp) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleSupplyMessage(UUID nodeId,
GridDhtPartitionSupplyMessage supplyMsg)
Handles supply message from
nodeId with specified topicId. |
protected void |
ownPartition(GridDhtPartitionDemander.RebalanceFuture fut,
int p,
UUID nodeId,
GridDhtPartitionSupplyMessage supplyMsg)
Owns the partition recursively.
|
void |
registerSupplyMessage(UUID nodeId,
GridDhtPartitionSupplyMessage supplyMsg,
Runnable r)
Enqueues supply message.
|
String |
toString() |
public GridDhtPartitionDemander(CacheGroupContext grp)
grp - Ccahe group.public void registerSupplyMessage(UUID nodeId, GridDhtPartitionSupplyMessage supplyMsg, Runnable r)
public void handleSupplyMessage(UUID nodeId, GridDhtPartitionSupplyMessage supplyMsg)
nodeId with specified topicId.
Supply message contains entries to populate rebalancing partitions.
There is a cyclic process:
Populate rebalancing partitions with entries from Supply message.
If not all partitions specified in rebalanceFut were rebalanced or marked as missed
send new Demand message to request next batch of entries.nodeId - Node id.supplyMsg - Supply message.protected void ownPartition(GridDhtPartitionDemander.RebalanceFuture fut, int p, UUID nodeId, GridDhtPartitionSupplyMessage supplyMsg)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020