Package org.gridgain.internal.eviction
Class PrimaryReplicaProvider
java.lang.Object
org.gridgain.internal.eviction.PrimaryReplicaProvider
Provides primary replica information for the current node.
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryReplicaProvider(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 TypeMethodDescriptiongetPartitionsByTableId(int tableId) Returns a list of partition IDs for the given table ID which primary replica is on the current node.getPartitionsByZoneId(int zoneId) Returns a list of partition IDs for the given zone ID which primary replica is on the current node.
-
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
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
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.
-