public interface ReservationAgent
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_GREEDY_FAVOR_EARLY_ALLOCATIONBy default favor early allocations. | 
| static String | FAVOR_EARLY_ALLOCATIONConstant defining the preferential treatment of time for equally valid
 allocations. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | createReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                 String user,
                 Plan plan,
                 org.apache.hadoop.yarn.api.records.ReservationDefinition contract)Create a reservation for the user that abides by the specified contract | 
| boolean | deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                 String user,
                 Plan plan)Delete an user reservation | 
| void | init(org.apache.hadoop.conf.Configuration conf)Init configuration. | 
| boolean | updateReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                 String user,
                 Plan plan,
                 org.apache.hadoop.yarn.api.records.ReservationDefinition contract)Update a reservation for the user that abides by the specified contract | 
static final String FAVOR_EARLY_ALLOCATION
static final boolean DEFAULT_GREEDY_FAVOR_EARLY_ALLOCATION
boolean createReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                          String user,
                          Plan plan,
                          org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
                   throws PlanningException
reservationId - the identifier of the reservation to be created.user - the user who wants to create the reservationplan - the Plan to which the reservation must be fittedcontract - encapsulates the resources the user requires for his
          sessionPlanningException - if the session cannot be fitted into the planboolean updateReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                          String user,
                          Plan plan,
                          org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
                   throws PlanningException
reservationId - the identifier of the reservation to be updateduser - the user who wants to create the sessionplan - the Plan to which the reservation must be fittedcontract - encapsulates the resources the user requires for his
          reservationPlanningException - if the reservation cannot be fitted into the planboolean deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
                          String user,
                          Plan plan)
                   throws PlanningException
reservationId - the identifier of the reservation to be deleteduser - the user who wants to create the reservationplan - the Plan to which the session must be fittedPlanningException - if the reservation cannot be fitted into the planvoid init(org.apache.hadoop.conf.Configuration conf)
conf - ConfigurationCopyright © 2008–2023 Apache Software Foundation. All rights reserved.