org.apache.hadoop.yarn.server.resourcemanager.scheduler
Interface Queue

All Known Subinterfaces:
CSQueue
All Known Implementing Classes:
AbstractCSQueue, FSLeafQueue, FSParentQueue, FSQueue, LeafQueue, ParentQueue, PlanQueue, ReservationQueue

@InterfaceStability.Evolving
@InterfaceAudience.LimitedPrivate(value="yarn")
public interface Queue


Method Summary
 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
 ActiveUsersManager getActiveUsersManager()
           
 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 recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource, SchedulerApplicationAttempt schedulerAttempt, RMContainer rmContainer)
          Recover the state of the queue for a given container.
 

Method Detail

getQueueName

String getQueueName()
Get the queue name

Returns:
queue name

getMetrics

QueueMetrics getMetrics()
Get the queue metrics

Returns:
the queue metrics

getQueueInfo

org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
                                                          boolean recursive)
Get queue information

Parameters:
includeChildQueues - include child queues?
recursive - recursively get child queue information?
Returns:
queue information

getQueueUserAclInfo

List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given user.

Parameters:
user - username
Returns:
queue ACLs for user

hasAccess

boolean hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
                  org.apache.hadoop.security.UserGroupInformation user)

getActiveUsersManager

ActiveUsersManager getActiveUsersManager()

recoverContainer

void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
                      SchedulerApplicationAttempt schedulerAttempt,
                      RMContainer rmContainer)
Recover the state of the queue for a given container.

Parameters:
clusterResource - the resource of the cluster
schedulerAttempt - the application for which the container was allocated
rmContainer - the container that was recovered.

getAccessibleNodeLabels

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

Returns:
labels

getDefaultNodeLabelExpression

String getDefaultNodeLabelExpression()
Get default label expression of this queue. If label expression of ApplicationSubmissionContext and label expression of Resource Request not set, this will be used.

Returns:
default label expression


Copyright © 2014 Apache Software Foundation. All Rights Reserved.