public class SimpleCandidateNodeSet<N extends SchedulerNode> extends Object implements CandidateNodeSet<N>
| Constructor and Description |
|---|
SimpleCandidateNodeSet(Map<org.apache.hadoop.yarn.api.records.NodeId,N> map,
String partition) |
SimpleCandidateNodeSet(N node) |
| Modifier and Type | Method and Description |
|---|---|
Map<org.apache.hadoop.yarn.api.records.NodeId,N> |
getAllNodes()
Get all nodes for this CandidateNodeSet
|
String |
getPartition()
Node partition of the node set.
|
long |
getVersion()
Version of the CandidateNodeSet, can help
AppPlacementAllocator to
decide if update is required |
public SimpleCandidateNodeSet(N node)
public Map<org.apache.hadoop.yarn.api.records.NodeId,N> getAllNodes()
CandidateNodeSetgetAllNodes in interface CandidateNodeSet<N extends SchedulerNode>public long getVersion()
CandidateNodeSetAppPlacementAllocator to
decide if update is requiredgetVersion in interface CandidateNodeSet<N extends SchedulerNode>public String getPartition()
CandidateNodeSetgetPartition in interface CandidateNodeSet<N extends SchedulerNode>Copyright © 2008–2024 Apache Software Foundation. All rights reserved.