Class ResourceRequestSetKey

java.lang.Object
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey
org.apache.hadoop.yarn.server.scheduler.ResourceRequestSetKey
All Implemented Interfaces:
Comparable<SchedulerRequestKey>

public class ResourceRequestSetKey extends SchedulerRequestKey
The scheduler key for a group of ResourceRequest. TODO: after YARN-7631 is fixed by adding Resource and ExecType into SchedulerRequestKey, then we can directly use that.
  • Constructor Details

    • ResourceRequestSetKey

      public ResourceRequestSetKey(org.apache.hadoop.yarn.api.records.ResourceRequest rr) throws org.apache.hadoop.yarn.exceptions.YarnException
      Create the key object from a ResourceRequest.
      Parameters:
      rr - Resource request object
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - if fails
    • ResourceRequestSetKey

      public ResourceRequestSetKey(long allocationRequestId, org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.Resource resource, org.apache.hadoop.yarn.api.records.ExecutionType execType)
      Create the key object from member objects.
      Parameters:
      allocationRequestId - allocate request id of the ask
      priority - the priority of the ask
      resource - the resource size of the ask
      execType - the execution type of the ask
  • Method Details