public class IdealAffinityAssignment extends Object
| Modifier and Type | Method and Description |
|---|---|
List<List<ClusterNode>> |
assignment() |
static Map<Object,Set<Integer>> |
calculatePrimaries(@Nullable List<ClusterNode> nodes,
List<List<ClusterNode>> assignment) |
static IdealAffinityAssignment |
create(AffinityTopologyVersion topVer,
@Nullable List<ClusterNode> nodes,
List<List<ClusterNode>> assignment) |
static IdealAffinityAssignment |
create(AffinityTopologyVersion topVer,
List<List<ClusterNode>> assignment) |
static IdealAffinityAssignment |
createWithPreservedPrimaries(AffinityTopologyVersion topVer,
List<List<ClusterNode>> assignment,
IdealAffinityAssignment previousAssignment) |
ClusterNode |
currentPrimary(int partition) |
Set<Integer> |
idealPrimaries(ClusterNode clusterNode) |
AffinityTopologyVersion |
topologyVersion() |
public Set<Integer> idealPrimaries(ClusterNode clusterNode)
clusterNode - Cluster node.public ClusterNode currentPrimary(int partition)
partition - Partition.public List<List<ClusterNode>> assignment()
public AffinityTopologyVersion topologyVersion()
public static Map<Object,Set<Integer>> calculatePrimaries(@Nullable @Nullable List<ClusterNode> nodes, List<List<ClusterNode>> assignment)
nodes - Nodes.assignment - Assignment.public static IdealAffinityAssignment create(AffinityTopologyVersion topVer, List<List<ClusterNode>> assignment)
topVer - Topology version.assignment - Assignment.public static IdealAffinityAssignment create(AffinityTopologyVersion topVer, @Nullable @Nullable List<ClusterNode> nodes, List<List<ClusterNode>> assignment)
topVer - Topology version.nodes - Nodes.assignment - Assignment.public static IdealAffinityAssignment createWithPreservedPrimaries(AffinityTopologyVersion topVer, List<List<ClusterNode>> assignment, IdealAffinityAssignment previousAssignment)
topVer - Topology version.assignment - Assignment.previousAssignment - Previous assignment.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021