public abstract class PlacementRule extends Object
Constructor and Description |
---|
PlacementRule() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
abstract String |
getQueueForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc,
String user)
Get queue for a given application
|
void |
initialize(Map<String,String> parameters,
RMContext rmContext) |
public String getName()
public void initialize(Map<String,String> parameters, RMContext rmContext) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public abstract String getQueueForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, String user) throws org.apache.hadoop.yarn.exceptions.YarnException
asc
- application submission contextuser
- userNamenon-null value means it is determined
null value means it is undetermined, so next PlacementRule
in the PlacementManager
will take care
org.apache.hadoop.yarn.exceptions.YarnException
- if any error happensCopyright © 2017 Apache Software Foundation. All Rights Reserved.