@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ReservationSubmissionRequest extends Object
ReservationSubmissionRequest
captures the set of requirements the
user has to create a reservation.ReservationDefinition
Constructor and Description |
---|
ReservationSubmissionRequest() |
Modifier and Type | Method and Description |
---|---|
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. |
abstract ReservationDefinition |
getReservationDefinition()
Get the
ReservationDefinition representing the user constraints for
this reservation |
abstract ReservationId |
getReservationId()
Get the reservation id that corresponds to the reservation submission.
|
static ReservationSubmissionRequest |
newInstance(ReservationDefinition reservationDefinition,
String queueName,
ReservationId reservationId) |
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 |
abstract void |
setReservationDefinition(ReservationDefinition reservationDefinition)
Set the
ReservationDefinition representing the user constraints for
this reservation |
abstract void |
setReservationId(ReservationId reservationId)
Set the reservation id that corresponds to the reservation submission.
|
@InterfaceAudience.Public @InterfaceStability.Unstable public static ReservationSubmissionRequest newInstance(ReservationDefinition reservationDefinition, String queueName, ReservationId reservationId)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ReservationDefinition getReservationDefinition()
ReservationDefinition
representing the user constraints for
this reservation@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setReservationDefinition(ReservationDefinition reservationDefinition)
ReservationDefinition
representing the user constraints for
this reservationreservationDefinition
- the reservation request representing the
reservation@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getQueue()
Plan
that corresponds to the name of the
QueueInfo
in the scheduler to which the reservation will be
submitted to.Plan
that corresponds to the name of the
QueueInfo
in the scheduler to which the reservation will be
submitted to@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setQueue(String queueName)
Plan
that corresponds to the name of the
QueueInfo
in the scheduler to which the reservation will be
submitted toqueueName
- 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@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ReservationId getReservationId()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setReservationId(ReservationId reservationId)
reservationId
- reservation id that will be used to identify the
reservation submission.Copyright © 2008–2018 Apache Software Foundation. All rights reserved.