org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity
Class ReservationQueue

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
      extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue
          extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ReservationQueue
All Implemented Interfaces:
CSQueue, Queue

public class ReservationQueue
extends LeafQueue

This represents a dynamic LeafQueue managed by the ReservationSystem


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue
LeafQueue.User
 
Field Summary
 
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue
maxApplications, maxApplicationsPerUser
 
Constructor Summary
ReservationQueue(CapacitySchedulerContext cs, String queueName, PlanQueue parent)
           
 
Method Summary
protected  float getCapacityFromConf()
           
 void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource)
          Reinitialize the queue.
 void setEntitlement(QueueEntitlement entitlement)
          This methods to change capacity for a queue and adjusts its absoluteCapacity
 
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue
assignContainers, assignToUser, attachContainer, checkLimitsToReserve, collectSchedulerApplications, completedContainer, detachContainer, findNodeToUnreserve, finishApplication, finishApplicationAttempt, getAbsActualCapacity, getActiveUsersManager, getApplications, getChildQueues, getHeadroom, getMaxAMResourcePerQueuePercent, getMaxApplications, getMaxApplicationsPerUser, getMaximumActiveApplications, getMaximumActiveApplicationsPerUser, getMinimumAllocationFactor, getNodeLocalityDelay, getNumActiveApplications, getNumActiveApplications, getNumApplications, getNumApplications, getNumContainers, getNumPendingApplications, getNumPendingApplications, getQueueInfo, getQueuePath, getQueueUserAclInfo, getState, getTotalResourcePending, getUser, getUserLimit, getUserLimitFactor, getUsers, recoverContainer, removeApplicationAttempt, setAbsoluteCapacity, setCapacity, setMaxApplications, setNodeLabelManager, setupQueueConfigs, submitApplication, submitApplicationAttempt, toString, updateClusterResource
 
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
getAbsoluteCapacity, getAbsoluteCapacityByNodeLabel, getAbsoluteMaximumCapacity, getAbsoluteMaximumCapacityByNodeLabel, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityByNodeLabel, getDefaultNodeLabelExpression, getMaximumAllocation, getMaximumCapacity, getMetrics, getMinimumAllocation, getParent, getQueueName, getReservationContinueLooking, getUsedCapacity, getUsedResources, hasAccess, releaseResource, setAbsoluteUsedCapacity, setParent, setUsedCapacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservationQueue

public ReservationQueue(CapacitySchedulerContext cs,
                        String queueName,
                        PlanQueue parent)
                 throws IOException
Throws:
IOException
Method Detail

reinitialize

public void reinitialize(CSQueue newlyParsedQueue,
                         org.apache.hadoop.yarn.api.records.Resource clusterResource)
                  throws IOException
Description copied from interface: CSQueue
Reinitialize the queue.

Specified by:
reinitialize in interface CSQueue
Overrides:
reinitialize in class LeafQueue
Parameters:
newlyParsedQueue - new queue to re-initalize from
clusterResource - resources in the cluster
Throws:
IOException

setEntitlement

public void setEntitlement(QueueEntitlement entitlement)
                    throws SchedulerDynamicEditException
This methods to change capacity for a queue and adjusts its absoluteCapacity

Parameters:
entitlement - the new entitlement for the queue (capacity, maxCapacity, etc..)
Throws:
SchedulerDynamicEditException

getCapacityFromConf

protected float getCapacityFromConf()
Overrides:
getCapacityFromConf in class LeafQueue


Copyright © 2014 Apache Software Foundation. All Rights Reserved.