|
||||||||||
| 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.AllocationConfiguration
public class AllocationConfiguration
| Constructor Summary | |
|---|---|
AllocationConfiguration(org.apache.hadoop.conf.Configuration conf)
|
|
AllocationConfiguration(Map<String,org.apache.hadoop.yarn.api.records.Resource> minQueueResources,
Map<String,org.apache.hadoop.yarn.api.records.Resource> maxQueueResources,
Map<String,Integer> queueMaxApps,
Map<String,Integer> userMaxApps,
Map<String,ResourceWeights> queueWeights,
Map<String,Float> queueMaxAMShares,
int userMaxAppsDefault,
int queueMaxAppsDefault,
float queueMaxAMShareDefault,
Map<String,SchedulingPolicy> schedulingPolicies,
SchedulingPolicy defaultSchedulingPolicy,
Map<String,Long> minSharePreemptionTimeouts,
Map<String,Long> fairSharePreemptionTimeouts,
Map<String,Float> fairSharePreemptionThresholds,
Map<String,Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList>> queueAcls,
QueuePlacementPolicy placementPolicy,
Map<FSQueueType,Set<String>> configuredQueues)
|
|
| Method Summary | |
|---|---|
Map<FSQueueType,Set<String>> |
getConfiguredQueues()
|
SchedulingPolicy |
getDefaultSchedulingPolicy()
|
float |
getFairSharePreemptionThreshold(String queueName)
Get a queue's fair share preemption threshold in the allocation file. |
long |
getFairSharePreemptionTimeout(String queueName)
Get a queue's fair share preemption timeout configured in the allocation file, in milliseconds. |
org.apache.hadoop.yarn.api.records.Resource |
getMaxResources(String queueName)
Get the maximum resource allocation for the given queue. |
org.apache.hadoop.yarn.api.records.Resource |
getMinResources(String queue)
Get the minimum resource allocation for the given queue. |
long |
getMinSharePreemptionTimeout(String queueName)
Get a queue's min share preemption timeout configured in the allocation file, in milliseconds. |
QueuePlacementPolicy |
getPlacementPolicy()
|
org.apache.hadoop.security.authorize.AccessControlList |
getQueueAcl(String queue,
org.apache.hadoop.yarn.api.records.QueueACL operation)
Get the ACLs associated with this queue. |
float |
getQueueMaxAMShare(String queue)
|
int |
getQueueMaxApps(String queue)
|
ResourceWeights |
getQueueWeight(String queue)
|
SchedulingPolicy |
getSchedulingPolicy(String queueName)
|
int |
getUserMaxApps(String user)
|
boolean |
hasAccess(String queueName,
org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocationConfiguration(Map<String,org.apache.hadoop.yarn.api.records.Resource> minQueueResources,
Map<String,org.apache.hadoop.yarn.api.records.Resource> maxQueueResources,
Map<String,Integer> queueMaxApps,
Map<String,Integer> userMaxApps,
Map<String,ResourceWeights> queueWeights,
Map<String,Float> queueMaxAMShares,
int userMaxAppsDefault,
int queueMaxAppsDefault,
float queueMaxAMShareDefault,
Map<String,SchedulingPolicy> schedulingPolicies,
SchedulingPolicy defaultSchedulingPolicy,
Map<String,Long> minSharePreemptionTimeouts,
Map<String,Long> fairSharePreemptionTimeouts,
Map<String,Float> fairSharePreemptionThresholds,
Map<String,Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList>> queueAcls,
QueuePlacementPolicy placementPolicy,
Map<FSQueueType,Set<String>> configuredQueues)
public AllocationConfiguration(org.apache.hadoop.conf.Configuration conf)
| Method Detail |
|---|
public org.apache.hadoop.security.authorize.AccessControlList getQueueAcl(String queue,
org.apache.hadoop.yarn.api.records.QueueACL operation)
public long getMinSharePreemptionTimeout(String queueName)
public long getFairSharePreemptionTimeout(String queueName)
public float getFairSharePreemptionThreshold(String queueName)
public ResourceWeights getQueueWeight(String queue)
public int getUserMaxApps(String user)
public int getQueueMaxApps(String queue)
public float getQueueMaxAMShare(String queue)
public org.apache.hadoop.yarn.api.records.Resource getMinResources(String queue)
public org.apache.hadoop.yarn.api.records.Resource getMaxResources(String queueName)
public boolean hasAccess(String queueName,
org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
public SchedulingPolicy getSchedulingPolicy(String queueName)
public SchedulingPolicy getDefaultSchedulingPolicy()
public Map<FSQueueType,Set<String>> getConfiguredQueues()
public QueuePlacementPolicy getPlacementPolicy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||