public abstract class AbstractManagedParentQueue extends ParentQueue
AbstractCSQueue.CapacityConfigType
Modifier and Type | Field and Description |
---|---|
protected AutoCreatedLeafQueueConfig |
leafQueueTemplate |
protected AutoCreatedQueueManagementPolicy |
queueManagementPolicy |
childQueues
activitiesManager, authorizer, capacityConfigType, csContext, queueEntity, readLock, writeLock
Constructor and Description |
---|
AbstractManagedParentQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old) |
apply, assignContainers, attachContainer, collectSchedulerApplications, completedContainer, detachContainer, finishApplication, finishApplicationAttempt, getAbstractUsersManager, getChildQueues, getNumApplications, getQueueInfo, getQueueOrderingPolicy, getQueueUserAclInfo, hasChildQueues, recoverContainer, setupQueueConfigs, stopQueue, submitApplication, submitApplicationAttempt, toString, updateClusterResource, validateSubmitApplication
accept, accessibleToPartition, activeQueue, appFinished, assignContainers, decPendingResource, decReservedResource, decUsedResource, getAbsoluteCapacity, getAbsoluteMaximumCapacity, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityConfigType, getDefaultApplicationLifetime, getDefaultApplicationPriority, getDefaultAppLifetimeWasSpecifiedInConfig, getDefaultNodeLabelExpression, getEffectiveCapacity, getEffectiveCapacityDown, getEffectiveMaxCapacity, getEffectiveMaxCapacityDown, getIntraQueuePreemptionDisabled, getIntraQueuePreemptionDisabledInHierarchy, getKillableContainers, getMaximumAllocation, getMaximumApplicationLifetime, getMaximumCapacity, getMetrics, getMinimumAllocation, getMultiNodeSortingPolicyName, getNodeLabelsForQueue, getNumContainers, getParent, getPreemptionDisabled, getPriority, getPrivilegedEntity, getQueueCapacities, getQueueConfigurations, getQueueInfo, getQueueName, getQueuePath, getQueueResourceQuotas, getQueueResourceUsage, getQueueStatistics, getReadLock, getReservationContinueLooking, getState, getTotalKillableResource, getUsedCapacity, getUsedResources, getUserWeights, hasAccess, incPendingResource, incReservedResource, incUsedResource, recoverDrainingState, releaseResource, setMultiNodeSortingPolicyName, setParent, setupConfigurableCapacities, setupConfigurableCapacities, setupQueueConfigs, updateConfigurableResourceRequirement, updateQueueState
protected AutoCreatedLeafQueueConfig leafQueueTemplate
protected AutoCreatedQueueManagementPolicy queueManagementPolicy
public AbstractManagedParentQueue(CapacitySchedulerContext cs, String queueName, CSQueue parent, CSQueue old) throws IOException
IOException
public void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource) throws IOException
CSQueue
reinitialize
in interface CSQueue
reinitialize
in class ParentQueue
newlyParsedQueue
- new queue to re-initalize fromclusterResource
- resources in the clusterIOException
public void addChildQueue(CSQueue childQueue) throws SchedulerDynamicEditException, IOException
childQueue
- reference to the child queue to be addedSchedulerDynamicEditException
IOException
public void removeChildQueue(CSQueue childQueue) throws SchedulerDynamicEditException
childQueue
- reference to the child queue to be removedSchedulerDynamicEditException
public CSQueue removeChildQueue(String childQueueName) throws SchedulerDynamicEditException
childQueueName
- name of the child queue to be removedSchedulerDynamicEditException
protected float sumOfChildCapacities()
protected float sumOfChildAbsCapacities()
public AutoCreatedLeafQueueConfig getLeafQueueTemplate()
public AutoCreatedQueueManagementPolicy getAutoCreatedQueueManagementPolicy()
protected SortedMap<String,String> getConfigurationsWithPrefix(SortedMap<String,String> sortedConfigs, String prefix)
protected CapacitySchedulerConfiguration initializeLeafQueueConfigs(String configPrefix)
protected void validateQueueEntitlementChange(AbstractAutoCreatedLeafQueue leafQueue, QueueEntitlement entitlement) throws SchedulerDynamicEditException
SchedulerDynamicEditException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.