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()
CandidateNodeSet
getAllNodes
in interface CandidateNodeSet<N extends SchedulerNode>
public long getVersion()
CandidateNodeSet
AppPlacementAllocator
to
decide if update is requiredgetVersion
in interface CandidateNodeSet<N extends SchedulerNode>
public String getPartition()
CandidateNodeSet
getPartition
in interface CandidateNodeSet<N extends SchedulerNode>
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.