java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.ContainerRequest

public class ContainerRequest extends Object
ContainerRequest is a class to capture resource requests associated with a Container, this will be used by scheduler to recover resource requests if the container preempted or cancelled before AM acquire the container. It should include deducted resource requests when the container allocated. Lifecycle of the ContainerRequest is:
 1) It is instantiated when container created.
 2) It will be set to ContainerImpl by scheduler.
 3) When container preempted or cancelled because of whatever reason before
    container acquired by AM. ContainerRequest will be added back to pending
    request pool.
 4) It will be cleared from ContainerImpl if the container already acquired by
    AM.
 
  • Constructor Details

    • ContainerRequest

      public ContainerRequest(List<org.apache.hadoop.yarn.api.records.ResourceRequest> requests)
    • ContainerRequest

      public ContainerRequest(org.apache.hadoop.yarn.api.records.SchedulingRequest schedulingRequest)
  • Method Details

    • getResourceRequests

      public List<org.apache.hadoop.yarn.api.records.ResourceRequest> getResourceRequests()
    • getSchedulingRequest

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