org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity
Class ReservationQueue
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue
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 classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue |
LeafQueue.User |
| 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 |
ReservationQueue
public ReservationQueue(CapacitySchedulerContext cs,
String queueName,
PlanQueue parent)
throws IOException
- Throws:
IOException
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 fromclusterResource - 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.