public abstract class QueuePlacementRule extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueuePlacementRule.Default
Places all apps in the default queue
|
static class |
QueuePlacementRule.PrimaryGroup
Places apps in queues by primary group of the submitter
|
static class |
QueuePlacementRule.Reject
Rejects all apps
|
static class |
QueuePlacementRule.SecondaryGroupExistingQueue
Places apps in queues by secondary group of the submitter
Match will be made on first secondary group that exist in
queues
|
static class |
QueuePlacementRule.Specified
Places apps in queues by requested queue of the submitter
|
static class |
QueuePlacementRule.User
Places apps in queues by username of the submitter
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
create |
| Constructor and Description |
|---|
QueuePlacementRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
assignAppToQueue(String requestedQueue,
String user,
org.apache.hadoop.security.Groups groups,
Collection<String> configuredQueues) |
protected abstract String |
getQueueForApp(String requestedQueue,
String user,
org.apache.hadoop.security.Groups groups,
Collection<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) |
abstract boolean |
isTerminal()
Returns true if this rule never tells the policy to continue.
|
public QueuePlacementRule initialize(boolean create, Map<String,String> args)
args - Additional attributes of the rule's xml element other than create.public String assignAppToQueue(String requestedQueue, String user, org.apache.hadoop.security.Groups groups, Collection<String> configuredQueues) throws IOException
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.IOExceptionpublic void initializeFromXml(Element el)
public abstract boolean isTerminal()
protected abstract String getQueueForApp(String requestedQueue, String user, org.apache.hadoop.security.Groups groups, Collection<String> configuredQueues) throws IOException
requestedQueue - The queue specified in the ApplicationSubmissionContextuser - The user submitting the app.groups - The groups of the user submitting the app.IOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.