@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 |
static ReservationSubmissionRequest |
newInstance(ReservationDefinition reservationDefinition,
String queueName) |
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 |
public ReservationSubmissionRequest()
@InterfaceAudience.Public @InterfaceStability.Unstable public static ReservationSubmissionRequest newInstance(ReservationDefinition reservationDefinition, String queueName)
@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 toCopyright © 2015 Apache Software Foundation. All rights reserved.