Class PrimaryReplicaProvider

java.lang.Object
org.gridgain.internal.eviction.PrimaryReplicaProvider

public class PrimaryReplicaProvider extends Object
Provides primary replica information for the current node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrimaryReplicaProvider(org.apache.ignite.internal.placementdriver.PlacementDriver placementDriver, org.apache.ignite.internal.network.TopologyService topologyService, org.apache.ignite.internal.components.NodeProperties nodeProperties)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of partition IDs for the given table ID which primary replica is on the current node.
    Returns a list of partition IDs for the given zone ID which primary replica is on the current node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PrimaryReplicaProvider

      public PrimaryReplicaProvider(org.apache.ignite.internal.placementdriver.PlacementDriver placementDriver, org.apache.ignite.internal.network.TopologyService topologyService, org.apache.ignite.internal.components.NodeProperties nodeProperties)
      Constructor.
      Parameters:
      placementDriver - Placement driver.
      topologyService - Topology service.
  • Method Details

    • getPartitionsByTableId

      public List<Integer> getPartitionsByTableId(int tableId)
      Returns a list of partition IDs for the given table ID which primary replica is on the current node.
      Parameters:
      tableId - Table ID.
      Returns:
      List of partition IDs.
    • getPartitionsByZoneId

      public List<Integer> getPartitionsByZoneId(int zoneId)
      Returns a list of partition IDs for the given zone ID which primary replica is on the current node.
      Parameters:
      zoneId - Zone ID.
      Returns:
      List of partition IDs.