Class ReservationListResponse
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ReservationListResponse
ReservationListResponse captures the list of reservations that the
user has queried.
The resulting list of ReservationAllocationState contains a list of
ResourceAllocationRequest representing the current state of the
reservation resource allocations will be returned. This is subject to change
in the event of re-planning a described by ReservationDefinition- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<ReservationAllocationState>Get the list ofReservationAllocationState, that corresponds to a reservation in the scheduler.static ReservationListResponsenewInstance(List<ReservationAllocationState> reservationAllocationState) abstract voidsetReservationAllocationState(List<ReservationAllocationState> reservationAllocationState) Set the list ofReservationAllocationState, that correspond to a reservation in the scheduler.
-
Constructor Details
-
ReservationListResponse
public ReservationListResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static ReservationListResponse newInstance(List<ReservationAllocationState> reservationAllocationState) -
getReservationAllocationState
Get the list ofReservationAllocationState, that corresponds to a reservation in the scheduler.- Returns:
- the list of
ReservationAllocationStatewhich holds information of a particular reservation
-
setReservationAllocationState
@Private @Unstable public abstract void setReservationAllocationState(List<ReservationAllocationState> reservationAllocationState) Set the list ofReservationAllocationState, that correspond to a reservation in the scheduler.- Parameters:
reservationAllocationState- the list ofReservationAllocationStatewhich holds information of a particular reservation.
-