org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair
Class QueuePlacementRule.Reject
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementRule.Reject
- Enclosing class:
- QueuePlacementRule
public static class QueuePlacementRule.Reject
- extends QueuePlacementRule
Rejects all apps
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueuePlacementRule.Reject
public QueuePlacementRule.Reject()
assignAppToQueue
public String assignAppToQueue(String requestedQueue,
String user,
org.apache.hadoop.security.Groups groups,
Map<FSQueueType,Set<String>> configuredQueues)
- Overrides:
assignAppToQueue in class QueuePlacementRule
- Parameters:
requestedQueue - The queue explicitly requested.user - The user submitting the app.groups - The groups of the user submitting the app.configuredQueues - The queues specified in the scheduler configuration.
- Returns:
- The queue to place the app into. An empty string indicates that we should
continue to the next rule, and null indicates that the app should be rejected.
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 ApplicationSubmissionContextuser - 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.