Interface Planner
- All Known Implementing Classes:
SimpleCapacityReplanner
public interface Planner
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(String planQueueName, ReservationSchedulerConfiguration conf) Initialize the replannervoidUpdate the existingPlan, by adding/removing/updating existing reservations, and adding a subset of the reservation requests in the contracts parameter.
-
Method Details
-
plan
void plan(Plan plan, List<org.apache.hadoop.yarn.api.records.ReservationDefinition> contracts) throws PlanningException Update the existingPlan, by adding/removing/updating existing reservations, and adding a subset of the reservation requests in the contracts parameter.- Parameters:
plan- thePlanto replancontracts- the list of reservation requests- Throws:
PlanningException- if operation is unsuccessful
-
init
Initialize the replanner- Parameters:
planQueueName- the name of the queue for this planconf- the scheduler configuration
-