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
|
abstract boolean |
initialize(ResourceScheduler scheduler) |
public String getName()
public abstract boolean initialize(ResourceScheduler scheduler) throws IOException
IOExceptionpublic 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 © 2022 Apache Software Foundation. All rights reserved.