org.apache.hadoop.yarn.server.resourcemanager.reservation
Interface Planner

All Known Implementing Classes:
SimpleCapacityReplanner

public interface Planner


Method Summary
 void init(String planQueueName, org.apache.hadoop.conf.Configuration 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.
 

Method Detail

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

init

void init(String planQueueName,
          org.apache.hadoop.conf.Configuration conf)
Initialize the replanner

Parameters:
planQueueName - the name of the queue for this plan
conf - the scheduler configuration


Copyright © 2014 Apache Software Foundation. All Rights Reserved.