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

public class SchedulingResponse extends Object
This class encapsulates the response received from the ResourceScheduler's attemptAllocateOnNode method.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SchedulingResponse(boolean isSuccess, org.apache.hadoop.yarn.api.records.ApplicationId applicationId, org.apache.hadoop.yarn.api.records.SchedulingRequest schedulingRequest)
    Create a SchedulingResponse.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.yarn.api.records.ApplicationId
    Get Application Id.
    org.apache.hadoop.yarn.api.records.SchedulingRequest
    Get Scheduling Request.
    boolean
    Returns true if Scheduler was able to accept and commit this request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SchedulingResponse

      public SchedulingResponse(boolean isSuccess, org.apache.hadoop.yarn.api.records.ApplicationId applicationId, org.apache.hadoop.yarn.api.records.SchedulingRequest schedulingRequest)
      Create a SchedulingResponse.
      Parameters:
      isSuccess - did scheduler accept.
      applicationId - Application Id.
      schedulingRequest - Scheduling Request.
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns true if Scheduler was able to accept and commit this request.
      Returns:
      isSuccessful.
    • getApplicationId

      public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
      Get Application Id.
      Returns:
      Application Id.
    • getSchedulingRequest

      public org.apache.hadoop.yarn.api.records.SchedulingRequest getSchedulingRequest()
      Get Scheduling Request.
      Returns:
      Scheduling Request.