public interface AffinityAssignment
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_AFFINITY_BACKUPS_THRESHOLD |
static int |
IGNITE_AFFINITY_BACKUPS_THRESHOLD
Size threshold to use Map instead of List view.
|
static boolean |
IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION
Disable memory affinity optimizations.
|
Modifier and Type | Method and Description |
---|---|
List<List<ClusterNode>> |
assignment() |
default Collection<UUID> |
assignments2ids(List<ClusterNode> assignmentPart)
Converts List of Cluster Nodes to HashSet of UUIDs wrapped as unmodifiable collection.
|
Set<Integer> |
backupPartitions(UUID nodeId)
Get backup partitions for specified node ID.
|
List<ClusterNode> |
get(int part)
Get affinity nodes for partition.
|
Collection<UUID> |
getIds(int part)
Get affinity node IDs for partition.
|
List<List<ClusterNode>> |
idealAssignment() |
Set<ClusterNode> |
nodes() |
Set<Integer> |
partitionPrimariesDifferentToIdeal() |
Set<ClusterNode> |
primaryPartitionNodes() |
Set<Integer> |
primaryPartitions(UUID nodeId)
Get primary partitions for specified node ID.
|
AffinityTopologyVersion |
topologyVersion() |
static final int DFLT_AFFINITY_BACKUPS_THRESHOLD
static final int IGNITE_AFFINITY_BACKUPS_THRESHOLD
static final boolean IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION
List<List<ClusterNode>> idealAssignment()
List<List<ClusterNode>> assignment()
AffinityTopologyVersion topologyVersion()
List<ClusterNode> get(int part)
part
- Partition.Collection<UUID> getIds(int part)
part
- Partition.Set<ClusterNode> nodes()
Set<ClusterNode> primaryPartitionNodes()
Set<Integer> primaryPartitions(UUID nodeId)
nodeId
- Node ID to get primary partitions for.Set<Integer> backupPartitions(UUID nodeId)
nodeId
- Node ID to get backup partitions for.Set<Integer> partitionPrimariesDifferentToIdeal()
default Collection<UUID> assignments2ids(List<ClusterNode> assignmentPart)
assignmentPart
- Source assignment per partition.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021