Class ReservationRequests
java.lang.Object
org.apache.hadoop.yarn.api.records.ReservationRequests
ReservationRequests captures the set of resource and constraints the
user cares about regarding a reservation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReservationRequestInterpreterGet theReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.abstract List<ReservationRequest>Get the list ofReservationRequestrepresenting the resources required by the applicationstatic ReservationRequestsnewInstance(List<ReservationRequest> reservationResources, ReservationRequestInterpreter type) abstract voidsetInterpreter(ReservationRequestInterpreter interpreter) Set theReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.abstract voidsetReservationResources(List<ReservationRequest> reservationResources) Set the list ofReservationRequestrepresenting the resources required by the application
-
Constructor Details
-
ReservationRequests
public ReservationRequests()
-
-
Method Details
-
newInstance
@Public @Unstable public static ReservationRequests newInstance(List<ReservationRequest> reservationResources, ReservationRequestInterpreter type) -
getReservationResources
Get the list ofReservationRequestrepresenting the resources required by the application- Returns:
- the list of
ReservationRequest
-
setReservationResources
@Public @Unstable public abstract void setReservationResources(List<ReservationRequest> reservationResources) Set the list ofReservationRequestrepresenting the resources required by the application- Parameters:
reservationResources- the list ofReservationRequest
-
getInterpreter
Get theReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.- Returns:
- the list of
ReservationRequestInterpreter
-
setInterpreter
Set theReservationRequestInterpreter, representing how the list of resources should be allocated, this captures temporal ordering and other constraints.- Parameters:
interpreter- theReservationRequestInterpreterfor this reservation
-