public interface Planner
| Modifier and Type | Method and Description |
|---|---|
void |
init(String planQueueName,
ReservationSchedulerConfiguration conf)
Initialize the replanner
|
void |
plan(Plan plan,
List<org.apache.hadoop.yarn.api.records.ReservationDefinition> contracts)
Update the existing
Plan, by adding/removing/updating existing
reservations, and adding a subset of the reservation requests in the
contracts parameter. |
void plan(Plan plan, List<org.apache.hadoop.yarn.api.records.ReservationDefinition> contracts) throws PlanningException
Plan, by adding/removing/updating existing
reservations, and adding a subset of the reservation requests in the
contracts parameter.plan - the Plan to replancontracts - the list of reservation requestsPlanningException - if operation is unsuccessfulvoid init(String planQueueName, ReservationSchedulerConfiguration conf)
planQueueName - the name of the queue for this planconf - the scheduler configurationCopyright © 2008–2022 Apache Software Foundation. All rights reserved.