java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.api.PlacedSchedulingRequest

public class PlacedSchedulingRequest extends Object
Class to encapsulate a Placed scheduling Request. It has the original Scheduling Request and a list of SchedulerNodes (one for each 'numAllocation' field in the corresponding ResourceSizing object. NOTE: Clients of this class SHOULD NOT rely on the value of resourceSizing.numAllocations and instead should use the size of collection returned by getNodes() instead.
  • Constructor Details

    • PlacedSchedulingRequest

      public PlacedSchedulingRequest(org.apache.hadoop.yarn.api.records.SchedulingRequest request)
  • Method Details

    • getSchedulingRequest

      public org.apache.hadoop.yarn.api.records.SchedulingRequest getSchedulingRequest()
    • getNodes

      public List<SchedulerNode> getNodes()
      List of Node locations on which this Scheduling Request can be placed. The size of this list = schedulingRequest.resourceSizing.numAllocations.
      Returns:
      List of Scheduler nodes.
    • getPlacementAttempt

      public int getPlacementAttempt()
    • setPlacementAttempt

      public void setPlacementAttempt(int attempt)
    • toString

      public String toString()
      Overrides:
      toString in class Object