Class ReservationSubmissionRequest

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest

@Public @Unstable public abstract class ReservationSubmissionRequest extends Object
ReservationSubmissionRequest captures the set of requirements the user has to create a reservation.
See Also:
  • Constructor Details

    • ReservationSubmissionRequest

      public ReservationSubmissionRequest()
  • Method Details

    • newInstance

      @Public @Unstable public static ReservationSubmissionRequest newInstance(ReservationDefinition reservationDefinition, String queueName, ReservationId reservationId)
    • getReservationDefinition

      @Public @Unstable public abstract ReservationDefinition getReservationDefinition()
      Get the ReservationDefinition representing the user constraints for this reservation
      Returns:
      the reservation definition representing user constraints
    • setReservationDefinition

      @Public @Unstable public abstract void setReservationDefinition(ReservationDefinition reservationDefinition)
      Set the ReservationDefinition representing the user constraints for this reservation
      Parameters:
      reservationDefinition - the reservation request representing the reservation
    • getQueue

      @Public @Unstable public abstract String getQueue()
      Get the name of the Plan that corresponds to the name of the QueueInfo in the scheduler to which the reservation will be submitted to.
      Returns:
      the name of the Plan that corresponds to the name of the QueueInfo in the scheduler to which the reservation will be submitted to
    • setQueue

      @Public @Unstable public abstract void setQueue(String queueName)
      Set the name of the Plan that corresponds to the name of the QueueInfo in the scheduler to which the reservation will be submitted to
      Parameters:
      queueName - the name of the parent Plan that corresponds to the name of the QueueInfo in the scheduler to which the reservation will be submitted to
    • getReservationId

      @Public @Unstable public abstract ReservationId getReservationId()
      Get the reservation id that corresponds to the reservation submission.
      Returns:
      reservation id that will be used to identify the reservation submission.
    • setReservationId

      @Public @Unstable public abstract void setReservationId(ReservationId reservationId)
      Set the reservation id that corresponds to the reservation submission.
      Parameters:
      reservationId - reservation id that will be used to identify the reservation submission.