Class GetNewReservationResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationResponse
The response sent by the ResourceManager to the client for
a request to get a new ReservationId for submitting reservations.
Clients can submit an reservation with the returned
ReservationId.
ApplicationClientProtocol#getNewReservation(GetNewReservationRequest)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReservationIdGet a newReservationIdto be used to submit a reservation.static GetNewReservationResponsenewInstance(ReservationId reservationId) abstract voidsetReservationId(ReservationId reservationId) Set a newReservationIdto be used to submit a reservation.
-
Constructor Details
-
GetNewReservationResponse
public GetNewReservationResponse()
-
-
Method Details
-
newInstance
-
getReservationId
Get a newReservationIdto be used to submit a reservation.- Returns:
- a
ReservationIdrepresenting the unique id to identify a reservation with which it was submitted.
-
setReservationId
Set a newReservationIdto be used to submit a reservation.- Parameters:
reservationId- aReservationIdrepresenting the unique id to identify a reservation with which it was submitted.
-