Class ReservationSubmissionRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest
ReservationSubmissionRequest captures the set of requirements the
user has to create a reservation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetQueue()Get the name of thePlanthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted to.abstract ReservationDefinitionGet theReservationDefinitionrepresenting the user constraints for this reservationabstract ReservationIdGet the reservation id that corresponds to the reservation submission.static ReservationSubmissionRequestnewInstance(ReservationDefinition reservationDefinition, String queueName, ReservationId reservationId) abstract voidSet the name of thePlanthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted toabstract voidsetReservationDefinition(ReservationDefinition reservationDefinition) Set theReservationDefinitionrepresenting the user constraints for this reservationabstract voidsetReservationId(ReservationId reservationId) Set the reservation id that corresponds to the reservation submission.
-
Constructor Details
-
ReservationSubmissionRequest
public ReservationSubmissionRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static ReservationSubmissionRequest newInstance(ReservationDefinition reservationDefinition, String queueName, ReservationId reservationId) -
getReservationDefinition
Get theReservationDefinitionrepresenting the user constraints for this reservation- Returns:
- the reservation definition representing user constraints
-
setReservationDefinition
@Public @Unstable public abstract void setReservationDefinition(ReservationDefinition reservationDefinition) Set theReservationDefinitionrepresenting the user constraints for this reservation- Parameters:
reservationDefinition- the reservation request representing the reservation
-
getQueue
Get the name of thePlanthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted to.- Returns:
- the name of the
Planthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted to
-
setQueue
Set the name of thePlanthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted to- Parameters:
queueName- the name of the parentPlanthat corresponds to the name of theQueueInfoin the scheduler to which the reservation will be submitted to
-
getReservationId
Get the reservation id that corresponds to the reservation submission.- Returns:
- reservation id that will be used to identify the reservation submission.
-
setReservationId
Set the reservation id that corresponds to the reservation submission.- Parameters:
reservationId- reservation id that will be used to identify the reservation submission.
-