|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueuePlacementPolicy
@InterfaceAudience.Private @InterfaceStability.Unstable public class QueuePlacementPolicy
| Constructor Summary | |
|---|---|
QueuePlacementPolicy(List<QueuePlacementRule> rules,
Map<FSQueueType,Set<String>> configuredQueues,
org.apache.hadoop.conf.Configuration conf)
|
|
| Method Summary | |
|---|---|
String |
assignAppToQueue(String requestedQueue,
String user)
Applies this rule to an app with the given requested queue and user/group information. |
static QueuePlacementRule |
createAndInitializeRule(Node node)
Create and initialize a rule given a xml node |
static QueuePlacementPolicy |
fromConfiguration(org.apache.hadoop.conf.Configuration conf,
Map<FSQueueType,Set<String>> configuredQueues)
Build a simple queue placement policy from the allow-undeclared-pools and user-as-default-queue configuration options. |
static QueuePlacementPolicy |
fromXml(Element el,
Map<FSQueueType,Set<String>> configuredQueues,
org.apache.hadoop.conf.Configuration conf)
Builds a QueuePlacementPolicy from an xml element. |
List<QueuePlacementRule> |
getRules()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueuePlacementPolicy(List<QueuePlacementRule> rules,
Map<FSQueueType,Set<String>> configuredQueues,
org.apache.hadoop.conf.Configuration conf)
throws AllocationConfigurationException
AllocationConfigurationException| Method Detail |
|---|
public static QueuePlacementPolicy fromXml(Element el,
Map<FSQueueType,Set<String>> configuredQueues,
org.apache.hadoop.conf.Configuration conf)
throws AllocationConfigurationException
AllocationConfigurationException
public static QueuePlacementRule createAndInitializeRule(Node node)
throws AllocationConfigurationException
node -
AllocationConfigurationException
public static QueuePlacementPolicy fromConfiguration(org.apache.hadoop.conf.Configuration conf,
Map<FSQueueType,Set<String>> configuredQueues)
public String assignAppToQueue(String requestedQueue,
String user)
throws IOException
requestedQueue - The queue specified in the ApplicationSubmissionContextuser - The user submitting the app
IOException - If an exception is encountered while getting the user's groupspublic List<QueuePlacementRule> getRules()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||