@InterfaceStability.Evolving
 @InterfaceAudience.LimitedPrivate(value="yarn")
public interface Queue
| Modifier and Type | Method and Description | 
|---|---|
| void | decPendingResource(String nodeLabel,
                  org.apache.hadoop.yarn.api.records.Resource resourceToDec)When an outstanding resource is fulfilled or canceled, calling this will
 decrease pending resource in a queue. | 
| void | decReservedResource(String partition,
                   org.apache.hadoop.yarn.api.records.Resource reservedRes)Decrement Reserved Capacity | 
| AbstractUsersManager | getAbstractUsersManager() | 
| Set<String> | getAccessibleNodeLabels()Get labels can be accessed of this queue
 labels={*}, means this queue can access any label
 labels={ }, means this queue cannot access any label except node without label
 labels={a, b, c} means this queue can access a or b or c | 
| org.apache.hadoop.yarn.api.records.Priority | getDefaultApplicationPriority()Get the Default Application Priority for this queue | 
| String | getDefaultNodeLabelExpression()Get default label expression of this queue. | 
| QueueMetrics | getMetrics()Get the queue metrics | 
| org.apache.hadoop.yarn.api.records.QueueInfo | getQueueInfo(boolean includeChildQueues,
            boolean recursive)Get queue information | 
| String | getQueueName()Get the queue name | 
| List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> | getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)Get queue ACLs for given  user. | 
| boolean | hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
         org.apache.hadoop.security.UserGroupInformation user) | 
| void | incPendingResource(String nodeLabel,
                  org.apache.hadoop.yarn.api.records.Resource resourceToInc)When new outstanding resource is asked, calling this will increase pending
 resource in a queue. | 
| void | incReservedResource(String partition,
                   org.apache.hadoop.yarn.api.records.Resource reservedRes)Increment Reserved Capacity | 
| void | recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
                SchedulerApplicationAttempt schedulerAttempt,
                RMContainer rmContainer)Recover the state of the queue for a given container. | 
String getQueueName()
QueueMetrics getMetrics()
org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
                                                          boolean recursive)
includeChildQueues - include child queues?recursive - recursively get child queue information?List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
user.user - usernameboolean hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
                  org.apache.hadoop.security.UserGroupInformation user)
AbstractUsersManager getAbstractUsersManager()
void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
                      SchedulerApplicationAttempt schedulerAttempt,
                      RMContainer rmContainer)
clusterResource - the resource of the clusterschedulerAttempt - the application for which the container was allocatedrmContainer - the container that was recovered.Set<String> getAccessibleNodeLabels()
String getDefaultNodeLabelExpression()
void incPendingResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToInc)
nodeLabel - asked by applicationresourceToInc - new resource askedvoid decPendingResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToDec)
nodeLabel - asked by applicationresourceToDec - new resource askedorg.apache.hadoop.yarn.api.records.Priority getDefaultApplicationPriority()
void incReservedResource(String partition, org.apache.hadoop.yarn.api.records.Resource reservedRes)
partition - asked by applicationreservedRes - reserved resource askedvoid decReservedResource(String partition, org.apache.hadoop.yarn.api.records.Resource reservedRes)
partition - asked by applicationreservedRes - reserved resource askedCopyright © 2008–2023 Apache Software Foundation. All rights reserved.