public class GridDhtPartitionsStateValidator extends Object
| Constructor and Description |
|---|
GridDhtPartitionsStateValidator(GridCacheSharedContext<?,?> cctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validatePartitionCountersAndSizes(GridDhtPartitionsExchangeFuture fut,
GridDhtPartitionTopology top,
Map<UUID,GridDhtPartitionsSingleMessage> messages)
Validates partition states - update counters and cache sizes for all nodes.
|
Map<Integer,Map<UUID,Long>> |
validatePartitionsSizes(GridDhtPartitionTopology top,
Map<UUID,GridDhtPartitionsSingleMessage> messages,
Set<UUID> ignoringNodes)
Validate partitions cache sizes for given
top. |
Map<Integer,Map<UUID,Long>> |
validatePartitionsUpdateCounters(GridDhtPartitionTopology top,
Map<UUID,GridDhtPartitionsSingleMessage> messages,
Set<UUID> ignoringNodes)
Validate partitions update counters for given
top. |
public GridDhtPartitionsStateValidator(GridCacheSharedContext<?,?> cctx)
cctx - Cache shared context.public void validatePartitionCountersAndSizes(GridDhtPartitionsExchangeFuture fut, GridDhtPartitionTopology top, Map<UUID,GridDhtPartitionsSingleMessage> messages) throws IgniteCheckedException
fut - Current exchange future.top - Topology to validate.messages - Single messages received from all nodes.IgniteCheckedException - If validation failed. Exception message contains
full information about all partitions which update counters or cache sizes are not consistent.public Map<Integer,Map<UUID,Long>> validatePartitionsUpdateCounters(GridDhtPartitionTopology top, Map<UUID,GridDhtPartitionsSingleMessage> messages, Set<UUID> ignoringNodes)
top.top - Topology to validate.messages - Single messages received from all nodes.ignoringNodes - Nodes for what we ignore validation.public Map<Integer,Map<UUID,Long>> validatePartitionsSizes(GridDhtPartitionTopology top, Map<UUID,GridDhtPartitionsSingleMessage> messages, Set<UUID> ignoringNodes)
top.top - Topology to validate.messages - Single messages received from all nodes.ignoringNodes - Nodes for what we ignore validation.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020