Class GridDhtPartitionDemander


  • public class GridDhtPartitionDemander
    extends Object
    Thread pool for requesting partitions from other nodes and populating local cache.
    • Constructor Detail

      • GridDhtPartitionDemander

        public GridDhtPartitionDemander​(CacheGroupContext grp)
        Parameters:
        grp - Ccahe group.
    • Method Detail

      • handleSupplyMessage

        public void handleSupplyMessage​(UUID nodeId,
                                        GridDhtPartitionSupplyMessage supplyMsg)
        Handles supply message from 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.
        Parameters:
        nodeId - Node id.
        supplyMsg - Supply message.