public class SimplePlacementSet<N extends SchedulerNode> extends Object implements PlacementSet<N>
Constructor and Description |
---|
SimplePlacementSet(Map<org.apache.hadoop.yarn.api.records.NodeId,N> map,
String partition) |
SimplePlacementSet(N node) |
Modifier and Type | Method and Description |
---|---|
Map<org.apache.hadoop.yarn.api.records.NodeId,N> |
getAllNodes()
Get all nodes for this PlacementSet
|
String |
getPartition()
Partition of the PlacementSet.
|
long |
getVersion()
Version of the PlacementSet, can help other PlacementSet with dependencies
deciding if update is required
|
public SimplePlacementSet(N node)
public Map<org.apache.hadoop.yarn.api.records.NodeId,N> getAllNodes()
PlacementSet
getAllNodes
in interface PlacementSet<N extends SchedulerNode>
public long getVersion()
PlacementSet
getVersion
in interface PlacementSet<N extends SchedulerNode>
public String getPartition()
PlacementSet
getPartition
in interface PlacementSet<N extends SchedulerNode>
Copyright © 2020 Apache Software Foundation. All rights reserved.