public class SimpleCapacityReplanner extends Object implements Planner
Constructor and Description |
---|
SimpleCapacityReplanner() |
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. |
public void init(String planQueueName, ReservationSchedulerConfiguration conf)
Planner
public void plan(Plan plan, List<org.apache.hadoop.yarn.api.records.ReservationDefinition> contracts) throws PlanningException
Planner
Plan
, by adding/removing/updating existing
reservations, and adding a subset of the reservation requests in the
contracts parameter.plan
in interface Planner
plan
- the Plan
to replancontracts
- the list of reservation requestsPlanningException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.