Class SimpleCandidateNodeSet<N extends SchedulerNode>
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.placement.SimpleCandidateNodeSet<N>
- All Implemented Interfaces:
CandidateNodeSet<N>
public class SimpleCandidateNodeSet<N extends SchedulerNode>
extends Object
implements CandidateNodeSet<N>
A simple CandidateNodeSet which keeps an unordered map
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCandidateNodeSet(Map<org.apache.hadoop.yarn.api.records.NodeId, N> map, String partition) SimpleCandidateNodeSet(N node) -
Method Summary
Modifier and TypeMethodDescriptionGet all nodes for this CandidateNodeSetNode partition of the node set.longVersion of the CandidateNodeSet, can helpAppPlacementAllocatorto decide if update is required
-
Constructor Details
-
SimpleCandidateNodeSet
-
SimpleCandidateNodeSet
-
-
Method Details
-
getAllNodes
Description copied from interface:CandidateNodeSetGet all nodes for this CandidateNodeSet- Specified by:
getAllNodesin interfaceCandidateNodeSet<N extends SchedulerNode>- Returns:
- all nodes for this CandidateNodeSet
-
getVersion
public long getVersion()Description copied from interface:CandidateNodeSetVersion of the CandidateNodeSet, can helpAppPlacementAllocatorto decide if update is required- Specified by:
getVersionin interfaceCandidateNodeSet<N extends SchedulerNode>- Returns:
- version
-
getPartition
Description copied from interface:CandidateNodeSetNode partition of the node set.- Specified by:
getPartitionin interfaceCandidateNodeSet<N extends SchedulerNode>- Returns:
- node partition
-