Class GridAffinityAssignment
- java.lang.Object
-
- org.apache.ignite.internal.processors.affinity.GridAffinityAssignment
-
- All Implemented Interfaces:
Serializable,AffinityAssignment
@Deprecated public class GridAffinityAssignment extends Object implements AffinityAssignment, Serializable
Deprecated.Cached affinity calculations. Deprecated GridAffinityAssignment doesn't support versioning. Use GridAffinityAssignmentV2 instead.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.affinity.AffinityAssignment
DFLT_AFFINITY_BACKUPS_THRESHOLD, IGNITE_AFFINITY_BACKUPS_THRESHOLD, IGNITE_DISABLE_AFFINITY_MEMORY_OPTIMIZATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<List<ClusterNode>>assignment()Deprecated.Set<Integer>backupPartitions(UUID nodeId)Deprecated.Get backup partitions for specified node ID.booleanequals(Object o)Deprecated.List<ClusterNode>get(int part)Deprecated.Get affinity nodes for partition.HashSet<UUID>getIds(int part)Deprecated.Get affinity node IDs for partition.inthashCode()Deprecated.List<List<ClusterNode>>idealAssignment()Deprecated.Set<ClusterNode>nodes()Deprecated.Set<Integer>partitionPrimariesDifferentToIdeal()Deprecated.Set<ClusterNode>primaryPartitionNodes()Deprecated.Set<Integer>primaryPartitions(UUID nodeId)Deprecated.Get primary partitions for specified node ID.AffinityTopologyVersiontopologyVersion()Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.affinity.AffinityAssignment
assignments2ids
-
-
-
-
Method Detail
-
idealAssignment
public List<List<ClusterNode>> idealAssignment()
Deprecated.- Specified by:
idealAssignmentin interfaceAffinityAssignment- Returns:
- Affinity assignment computed by affinity function.
-
assignment
public List<List<ClusterNode>> assignment()
Deprecated.- Specified by:
assignmentin interfaceAffinityAssignment- Returns:
- Affinity assignment.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
Deprecated.- Specified by:
topologyVersionin interfaceAffinityAssignment- Returns:
- Topology version.
-
get
public List<ClusterNode> get(int part)
Deprecated.Get affinity nodes for partition.- Specified by:
getin interfaceAffinityAssignment- Parameters:
part- Partition.- Returns:
- Affinity nodes.
-
getIds
public HashSet<UUID> getIds(int part)
Deprecated.Get affinity node IDs for partition.- Specified by:
getIdsin interfaceAffinityAssignment- Parameters:
part- Partition.- Returns:
- Affinity nodes IDs.
-
nodes
public Set<ClusterNode> nodes()
Deprecated.- Specified by:
nodesin interfaceAffinityAssignment- Returns:
- Nodes having primary and backup assignments.
-
primaryPartitionNodes
public Set<ClusterNode> primaryPartitionNodes()
Deprecated.- Specified by:
primaryPartitionNodesin interfaceAffinityAssignment- Returns:
- Nodes having primary partitions assignments.
-
primaryPartitions
public Set<Integer> primaryPartitions(UUID nodeId)
Deprecated.Get primary partitions for specified node ID.- Specified by:
primaryPartitionsin interfaceAffinityAssignment- Parameters:
nodeId- Node ID to get primary partitions for.- Returns:
- Primary partitions for specified node ID.
-
backupPartitions
public Set<Integer> backupPartitions(UUID nodeId)
Deprecated.Get backup partitions for specified node ID.- Specified by:
backupPartitionsin interfaceAffinityAssignment- Parameters:
nodeId- Node ID to get backup partitions for.- Returns:
- Backup partitions for specified node ID.
-
partitionPrimariesDifferentToIdeal
public Set<Integer> partitionPrimariesDifferentToIdeal()
Deprecated.- Specified by:
partitionPrimariesDifferentToIdealin interfaceAffinityAssignment- Returns:
- Set of partitions which primary is different to primary in ideal assignment.
-
-