org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair
Class QueuePlacementRule.Default

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule
      extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule.Default
Enclosing class:
QueuePlacementRule

public static class QueuePlacementRule.Default
extends QueuePlacementRule

Places apps in the specified default queue. If no default queue is specified the app is placed in root.default queue.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule
QueuePlacementRule.Default, QueuePlacementRule.NestedUserQueue, QueuePlacementRule.PrimaryGroup, QueuePlacementRule.Reject, QueuePlacementRule.SecondaryGroupExistingQueue, QueuePlacementRule.Specified, QueuePlacementRule.User
 
Field Summary
 
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule
create
 
Constructor Summary
QueuePlacementRule.Default()
           
 
Method Summary
protected  String getQueueForApp(String requestedQueue, String user, org.apache.hadoop.security.Groups groups, Map<FSQueueType,Set<String>> configuredQueues)
          Applies this rule to an app with the given requested queue and user/group information.
 QueuePlacementRule initialize(boolean create, Map<String,String> args)
          Initializes the rule with any arguments.
 void initializeFromXml(Element el)
           
 boolean isTerminal()
          Returns true if this rule never tells the policy to continue.
 
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule
assignAppToQueue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueuePlacementRule.Default

public QueuePlacementRule.Default()
Method Detail

initialize

public QueuePlacementRule initialize(boolean create,
                                     Map<String,String> args)
Description copied from class: QueuePlacementRule
Initializes the rule with any arguments.

Overrides:
initialize in class QueuePlacementRule
args - Additional attributes of the rule's xml element other than create.

initializeFromXml

public void initializeFromXml(Element el)
                       throws AllocationConfigurationException
Overrides:
initializeFromXml in class QueuePlacementRule
Throws:
AllocationConfigurationException

getQueueForApp

protected String getQueueForApp(String requestedQueue,
                                String user,
                                org.apache.hadoop.security.Groups groups,
                                Map<FSQueueType,Set<String>> configuredQueues)
Description copied from class: QueuePlacementRule
Applies this rule to an app with the given requested queue and user/group information.

Specified by:
getQueueForApp in class QueuePlacementRule
Parameters:
requestedQueue - The queue specified in the ApplicationSubmissionContext
user - The user submitting the app.
groups - The groups of the user submitting the app.
Returns:
The name of the queue to assign the app to, or null to empty string continue to the next rule.

isTerminal

public boolean isTerminal()
Description copied from class: QueuePlacementRule
Returns true if this rule never tells the policy to continue.

Specified by:
isTerminal in class QueuePlacementRule


Copyright © 2014 Apache Software Foundation. All Rights Reserved.