public class ManagedParentQueue extends AbstractManagedParentQueue
AbstractParentQueue.QueueCapacityTypeAbstractCSQueue.CapacityConfigTypeleafQueueTemplate, queueManagementPolicychildQueuesactivitiesManager, authorizer, capacityConfigType, configuredCapacityVectors, configuredMaxCapacityVectors, queueAllocationSettings, queueContext, queueEntity, queueNodeLabelsSettings, queuePath, readLock, writeLock| Constructor and Description |
|---|
ManagedParentQueue(CapacitySchedulerQueueContext queueContext,
String queueName,
CSQueue parent,
CSQueue old) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildQueue(CSQueue childQueue)
Add the specified child queue.
|
List<FiCaSchedulerApp> |
getAllApplications() |
String |
getLeafQueueConfigPrefix(CapacitySchedulerConfiguration conf) |
List<FiCaSchedulerApp> |
getPendingApplications() |
List<FiCaSchedulerApp> |
getScheduleableApplications() |
protected AutoCreatedLeafQueueConfig.Builder |
initializeLeafQueueConfigs() |
void |
reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue.
|
void |
setLeafQueueConfigs(String leafQueueName) |
boolean |
shouldFailAutoCreationWhenGuaranteedCapacityExceeded() |
protected void |
validate(CSQueue newlyParsedQueue) |
void |
validateAndApplyQueueManagementChanges(List<QueueManagementChange> queueManagementChanges)
Asynchronously called from scheduler to apply queue management changes.
|
void |
validateQueueManagementChanges(List<QueueManagementChange> queueManagementChanges) |
getAutoCreatedQueueManagementPolicy, getLeafQueueTemplate, initializeLeafQueueConfigs, removeChildQueue, removeChildQueue, sumOfChildAbsCapacities, sumOfChildCapacities, validateQueueEntitlementChangeapply, assignContainers, attachContainer, collectSchedulerApplications, completedContainer, createNewQueue, detachContainer, finishApplication, finishApplicationAttempt, getAbstractUsersManager, getAutoCreatedQueueTemplate, getCapacityConfigurationTypeForQueues, getChildQueues, getChildQueuesByTryLock, getNumApplications, getQueueInfo, getQueueOrderingPolicy, getQueueUserAclInfo, getResourceLimitsOfChild, hasChildQueues, isEligibleForAutoDeletion, isEligibleForAutoQueueCreation, recoverContainer, refreshAfterResourceCalculation, setDynamicQueueACLProperties, setupQueueConfigs, stopQueue, submitApplication, submitApplicationAttempt, submitApplicationAttempt, toString, updateClusterResource, updateClusterResourceLegacyMode, validateSubmitApplicationaccept, activateQueue, appFinished, assignContainers, checkConfigTypeIsAbsoluteResource, decPendingResource, decReservedResource, decUsedResource, getAbsoluteCapacity, getAbsoluteMaximumCapacity, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityConfigType, getCapacityOrWeightString, getConfiguredCapacityVector, getConfiguredMaxCapacityVector, getConfiguredNodeLabels, getDefaultApplicationLifetime, getDefaultApplicationPriority, getDefaultAppLifetimeWasSpecifiedInConfig, getDefaultNodeLabelExpression, getEffectiveCapacity, getEffectiveCapacityDown, getEffectiveMaxCapacity, getEffectiveMaxCapacityDown, getIntraQueuePreemptionDisabled, getIntraQueuePreemptionDisabledInHierarchy, getKillableContainers, getMaximumAbsoluteResource, getMaximumAllocation, getMaximumApplicationLifetime, getMaximumCapacity, getMaxParallelApps, getMetrics, getMinimumAbsoluteResource, getMinimumAllocation, getMultiNodeSortingPolicyName, getNodeLabelsForQueue, getNumContainers, getParent, getPreemptionDisabled, getPriority, getPrivilegedEntity, getQueueCapacities, getQueueContext, getQueueInfo, getQueueName, getQueuePath, getQueuePathObject, getQueueResourceQuotas, getQueueResourceUsage, getQueueShortName, getReadLock, getState, getTotalKillableResource, getUsedCapacity, getUsedResources, getUserWeights, getWriteLock, hasAccess, incPendingResource, incReservedResource, incUsedResource, isDynamicQueue, isInactiveDynamicQueue, isReservationsContinueLooking, overrideCapacityVectorsForSpecialQueues, parseAndSetDynamicTemplates, recoverDrainingState, releaseResource, setConfiguredMaxCapacityVector, setConfiguredMinCapacityVector, setDynamicQueue, setMaxParallelApps, setMultiNodeSortingPolicyName, setParent, setupConfigurableCapacities, updateAbsoluteCapacities, updateCapacityConfigType, updateConfigurableResourceLimits, updateQueueStatepublic ManagedParentQueue(CapacitySchedulerQueueContext queueContext, String queueName, CSQueue parent, CSQueue old) throws IOException
IOExceptionpublic void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource) throws IOException
CSQueuereinitialize in interface CSQueuereinitialize in class AbstractManagedParentQueuenewlyParsedQueue - new queue to re-initalize fromclusterResource - resources in the clusterIOException - an I/O exception has occurred.protected AutoCreatedLeafQueueConfig.Builder initializeLeafQueueConfigs() throws IOException
IOExceptionprotected void validate(CSQueue newlyParsedQueue) throws IOException
IOExceptionpublic void addChildQueue(CSQueue childQueue) throws SchedulerDynamicEditException, IOException
AbstractManagedParentQueueaddChildQueue in class AbstractManagedParentQueuechildQueue - reference to the child queue to be addedSchedulerDynamicEditException - when addChildQueue fails.IOException - an I/O exception has occurred.public List<FiCaSchedulerApp> getScheduleableApplications()
public List<FiCaSchedulerApp> getPendingApplications()
public List<FiCaSchedulerApp> getAllApplications()
public String getLeafQueueConfigPrefix(CapacitySchedulerConfiguration conf)
public boolean shouldFailAutoCreationWhenGuaranteedCapacityExceeded()
public void validateAndApplyQueueManagementChanges(List<QueueManagementChange> queueManagementChanges) throws IOException, SchedulerDynamicEditException
queueManagementChanges - QueueManagementChange List.IOException - an I/O exception has occurred.SchedulerDynamicEditException - when validate and apply QueueManagementChanges fails.public void validateQueueManagementChanges(List<QueueManagementChange> queueManagementChanges) throws SchedulerDynamicEditException
SchedulerDynamicEditExceptionpublic void setLeafQueueConfigs(String leafQueueName)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.