Class ReservationUpdateRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest
ReservationUpdateRequest captures the set of requirements the user
has to update an existing reservation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReservationDefinitionGet theReservationDefinitionrepresenting the updated user constraints for this reservationabstract ReservationIdGet theReservationId, that corresponds to a valid resource allocation in the scheduler (between start and end time of this reservation)static ReservationUpdateRequestnewInstance(ReservationDefinition reservationDefinition, ReservationId reservationId) abstract voidsetReservationDefinition(ReservationDefinition reservationDefinition) Set theReservationDefinitionrepresenting the updated user constraints for this reservationabstract voidsetReservationId(ReservationId reservationId) Set theReservationId, that correspond to a valid resource allocation in the scheduler (between start and end time of this reservation)
-
Constructor Details
-
ReservationUpdateRequest
public ReservationUpdateRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static ReservationUpdateRequest newInstance(ReservationDefinition reservationDefinition, ReservationId reservationId) -
getReservationDefinition
Get theReservationDefinitionrepresenting the updated user constraints for this reservation- Returns:
- the reservation definition representing user constraints
-
setReservationDefinition
@Public @Unstable public abstract void setReservationDefinition(ReservationDefinition reservationDefinition) Set theReservationDefinitionrepresenting the updated user constraints for this reservation- Parameters:
reservationDefinition- the reservation request representing the reservation
-
getReservationId
Get theReservationId, that corresponds to a valid resource allocation in the scheduler (between start and end time of this reservation)- Returns:
- the
ReservationIdrepresenting the unique id of the corresponding reserved resource allocation in the scheduler
-
setReservationId
Set theReservationId, that correspond to a valid resource allocation in the scheduler (between start and end time of this reservation)- Parameters:
reservationId- theReservationIdrepresenting the the unique id of the corresponding reserved resource allocation in the scheduler
-