All Known Implementing Classes:
SimpleCapacityReplanner

public interface Planner
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.
  • Method Details

    • plan

      void plan(Plan plan, List<org.apache.hadoop.yarn.api.records.ReservationDefinition> contracts) throws PlanningException
      Update the existing Plan, by adding/removing/updating existing reservations, and adding a subset of the reservation requests in the contracts parameter.
      Parameters:
      plan - the Plan to replan
      contracts - the list of reservation requests
      Throws:
      PlanningException - if operation is unsuccessful
    • init

      void init(String planQueueName, ReservationSchedulerConfiguration conf)
      Initialize the replanner
      Parameters:
      planQueueName - the name of the queue for this plan
      conf - the scheduler configuration