@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface PlacementSet<N extends SchedulerNode>
PlacementSet is the central place that decide the order of node to fit asks by application.
Also, PlacementSet can cache results (for example, ordered list) for better performance.
PlacementSet can depend on one or more other PlacementSets.
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
|
Map<org.apache.hadoop.yarn.api.records.NodeId,N> getAllNodes()
long getVersion()
String getPartition()
Copyright © 2020 Apache Software Foundation. All rights reserved.