CandidateNodeSet<N>public class SimpleCandidateNodeSet<N extends SchedulerNode> extends java.lang.Object implements CandidateNodeSet<N>
| Constructor | Description |
|---|---|
SimpleCandidateNodeSet(java.util.Map<org.apache.hadoop.yarn.api.records.NodeId,N> map,
java.lang.String partition) |
|
SimpleCandidateNodeSet(N node) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<org.apache.hadoop.yarn.api.records.NodeId,N> |
getAllNodes() |
Get all nodes for this CandidateNodeSet
|
java.lang.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 SimpleCandidateNodeSet(java.util.Map<org.apache.hadoop.yarn.api.records.NodeId,N> map, java.lang.String partition)
public java.util.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 java.lang.String getPartition()
CandidateNodeSetgetPartition in interface CandidateNodeSet<N extends SchedulerNode>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.