org.apache.hadoop.yarn.server.resourcemanager.reservation
Class CapacityReservationSystem

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
          extended by org.apache.hadoop.yarn.server.resourcemanager.reservation.CapacityReservationSystem
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service, ReservationSystem

@InterfaceAudience.LimitedPrivate(value="yarn")
@InterfaceStability.Unstable
public class CapacityReservationSystem
extends AbstractReservationSystem

This is the implementation of ReservationSystem based on the CapacityScheduler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
 
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
conf, planStepSize
 
Constructor Summary
CapacityReservationSystem()
           
 
Method Summary
protected  SharingPolicy getAdmissionPolicy(String queueName)
           
protected  ReservationAgent getAgent(String queueName)
           
protected  Planner getReplanner(String planQueueName)
           
protected  Plan initializePlan(String planQueueName)
           
 void reinitialize(org.apache.hadoop.conf.Configuration conf, RMContext rmContext)
          Re-initialize the ReservationSystem.
 
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
getAllPlans, getDefaultReservationSystem, getNewReservationId, getPlan, getPlanFollowerTimeStep, getQueueForReservation, serviceInit, serviceStart, serviceStop, setQueueForReservation, setRMContext, synchronizePlan
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapacityReservationSystem

public CapacityReservationSystem()
Method Detail

reinitialize

public void reinitialize(org.apache.hadoop.conf.Configuration conf,
                         RMContext rmContext)
                  throws org.apache.hadoop.yarn.exceptions.YarnException
Description copied from interface: ReservationSystem
Re-initialize the ReservationSystem.

Specified by:
reinitialize in interface ReservationSystem
Overrides:
reinitialize in class AbstractReservationSystem
Parameters:
conf - configuration
rmContext - current context of the ResourceManager
Throws:
org.apache.hadoop.yarn.exceptions.YarnException

initializePlan

protected Plan initializePlan(String planQueueName)
                       throws org.apache.hadoop.yarn.exceptions.YarnException
Specified by:
initializePlan in class AbstractReservationSystem
Throws:
org.apache.hadoop.yarn.exceptions.YarnException

getReplanner

protected Planner getReplanner(String planQueueName)
Specified by:
getReplanner in class AbstractReservationSystem

getAgent

protected ReservationAgent getAgent(String queueName)
Specified by:
getAgent in class AbstractReservationSystem

getAdmissionPolicy

protected SharingPolicy getAdmissionPolicy(String queueName)
Specified by:
getAdmissionPolicy in class AbstractReservationSystem


Copyright © 2014 Apache Software Foundation. All Rights Reserved.