org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity
Class CapacitySchedulerConfiguration

java.lang.Object
  extended by org.apache.hadoop.conf.Configuration
      extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

public class CapacitySchedulerConfiguration
extends org.apache.hadoop.conf.Configuration


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.Configuration.IntegerRanges
 
Field Summary
static String ALL_ACL
           
static String CAPACITY
           
static boolean DEFAULT_ENABLE_USER_METRICS
           
static float DEFAULT_MAXIMUM_APPLICATIONMASTERS_RESOURCE_PERCENT
           
static int DEFAULT_MAXIMUM_SYSTEM_APPLICATIIONS
           
static int DEFAULT_USER_LIMIT
           
static float DEFAULT_USER_LIMIT_FACTOR
           
static String DOT
           
static String ENABLE_USER_METRICS
           
static String MAXIMUM_ALLOCATION
           
static String MAXIMUM_APPLICATION_MASTERS_RESOURCE_PERCENT
           
static String MAXIMUM_CAPACITY
           
static int MAXIMUM_CAPACITY_VALUE
           
static String MAXIMUM_SYSTEM_APPLICATIONS
           
static String MINIMUM_ALLOCATION
           
static int MINIMUM_CAPACITY_VALUE
           
static String NONE_ACL
           
static String PREFIX
           
static String QUEUES
           
static String ROOT
           
static String STATE
           
static int UNDEFINED
           
static String USER_LIMIT
           
static String USER_LIMIT_FACTOR
           
 
Constructor Summary
CapacitySchedulerConfiguration()
           
CapacitySchedulerConfiguration(org.apache.hadoop.conf.Configuration configuration)
           
 
Method Summary
 org.apache.hadoop.security.authorize.AccessControlList getAcl(String queue, org.apache.hadoop.yarn.api.records.QueueACL acl)
           
 Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> getAcls(String queue)
           
 int getCapacity(String queue)
           
 boolean getEnableUserMetrics()
           
 org.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()
           
 float getMaximumApplicationMasterResourcePercent()
           
 int getMaximumCapacity(String queue)
           
 int getMaximumSystemApplications()
           
 org.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()
           
 String[] getQueues(String queue)
           
 org.apache.hadoop.yarn.api.records.QueueState getState(String queue)
           
 int getUserLimit(String queue)
           
 float getUserLimitFactor(String queue)
           
 void setAcl(String queue, org.apache.hadoop.yarn.api.records.QueueACL acl, String aclString)
           
 void setAcls(String queue, Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> acls)
           
 void setCapacity(String queue, int capacity)
           
 void setMaximumCapacity(String queue, int maxCapacity)
           
 void setQueues(String queue, String[] subQueues)
           
 void setUserLimit(String queue, int userLimit)
           
 void setUserLimitFactor(String queue, float userLimitFactor)
           
 
Methods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addResource, addResource, addResource, addResource, clear, dumpConfiguration, get, get, getBoolean, getClass, getClass, getClassByName, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getEnum, getFile, getFloat, getInstances, getInt, getLocalPath, getLong, getLongBytes, getPattern, getProps, getRange, getRaw, getResource, getStringCollection, getStrings, getStrings, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, iterator, main, readFields, reloadConfiguration, set, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setStrings, size, toString, unset, write, writeXml, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

@InterfaceAudience.Private
public static final String PREFIX
See Also:
Constant Field Values

DOT

@InterfaceAudience.Private
public static final String DOT
See Also:
Constant Field Values

MAXIMUM_SYSTEM_APPLICATIONS

@InterfaceAudience.Private
public static final String MAXIMUM_SYSTEM_APPLICATIONS
See Also:
Constant Field Values

MAXIMUM_APPLICATION_MASTERS_RESOURCE_PERCENT

@InterfaceAudience.Private
public static final String MAXIMUM_APPLICATION_MASTERS_RESOURCE_PERCENT
See Also:
Constant Field Values

QUEUES

@InterfaceAudience.Private
public static final String QUEUES
See Also:
Constant Field Values

CAPACITY

@InterfaceAudience.Private
public static final String CAPACITY
See Also:
Constant Field Values

MAXIMUM_CAPACITY

@InterfaceAudience.Private
public static final String MAXIMUM_CAPACITY
See Also:
Constant Field Values

USER_LIMIT

@InterfaceAudience.Private
public static final String USER_LIMIT
See Also:
Constant Field Values

USER_LIMIT_FACTOR

@InterfaceAudience.Private
public static final String USER_LIMIT_FACTOR
See Also:
Constant Field Values

STATE

@InterfaceAudience.Private
public static final String STATE
See Also:
Constant Field Values

MINIMUM_ALLOCATION

@InterfaceAudience.Private
public static final String MINIMUM_ALLOCATION
See Also:
Constant Field Values

MAXIMUM_ALLOCATION

@InterfaceAudience.Private
public static final String MAXIMUM_ALLOCATION
See Also:
Constant Field Values

DEFAULT_MAXIMUM_SYSTEM_APPLICATIIONS

@InterfaceAudience.Private
public static final int DEFAULT_MAXIMUM_SYSTEM_APPLICATIIONS
See Also:
Constant Field Values

DEFAULT_MAXIMUM_APPLICATIONMASTERS_RESOURCE_PERCENT

@InterfaceAudience.Private
public static final float DEFAULT_MAXIMUM_APPLICATIONMASTERS_RESOURCE_PERCENT
See Also:
Constant Field Values

UNDEFINED

@InterfaceAudience.Private
public static final int UNDEFINED
See Also:
Constant Field Values

MINIMUM_CAPACITY_VALUE

@InterfaceAudience.Private
public static final int MINIMUM_CAPACITY_VALUE
See Also:
Constant Field Values

MAXIMUM_CAPACITY_VALUE

@InterfaceAudience.Private
public static final int MAXIMUM_CAPACITY_VALUE
See Also:
Constant Field Values

DEFAULT_USER_LIMIT

@InterfaceAudience.Private
public static final int DEFAULT_USER_LIMIT
See Also:
Constant Field Values

DEFAULT_USER_LIMIT_FACTOR

@InterfaceAudience.Private
public static final float DEFAULT_USER_LIMIT_FACTOR
See Also:
Constant Field Values

ALL_ACL

@InterfaceAudience.Private
public static final String ALL_ACL
See Also:
Constant Field Values

NONE_ACL

@InterfaceAudience.Private
public static final String NONE_ACL
See Also:
Constant Field Values

ENABLE_USER_METRICS

@InterfaceAudience.Private
public static final String ENABLE_USER_METRICS
See Also:
Constant Field Values

DEFAULT_ENABLE_USER_METRICS

@InterfaceAudience.Private
public static final boolean DEFAULT_ENABLE_USER_METRICS
See Also:
Constant Field Values

ROOT

@InterfaceAudience.Private
public static final String ROOT
See Also:
Constant Field Values
Constructor Detail

CapacitySchedulerConfiguration

public CapacitySchedulerConfiguration()

CapacitySchedulerConfiguration

public CapacitySchedulerConfiguration(org.apache.hadoop.conf.Configuration configuration)
Method Detail

getMaximumSystemApplications

public int getMaximumSystemApplications()

getMaximumApplicationMasterResourcePercent

public float getMaximumApplicationMasterResourcePercent()

getCapacity

public int getCapacity(String queue)

setCapacity

public void setCapacity(String queue,
                        int capacity)

getMaximumCapacity

public int getMaximumCapacity(String queue)

setMaximumCapacity

public void setMaximumCapacity(String queue,
                               int maxCapacity)

getUserLimit

public int getUserLimit(String queue)

setUserLimit

public void setUserLimit(String queue,
                         int userLimit)

getUserLimitFactor

public float getUserLimitFactor(String queue)

setUserLimitFactor

public void setUserLimitFactor(String queue,
                               float userLimitFactor)

getState

public org.apache.hadoop.yarn.api.records.QueueState getState(String queue)

getAcl

public org.apache.hadoop.security.authorize.AccessControlList getAcl(String queue,
                                                                     org.apache.hadoop.yarn.api.records.QueueACL acl)

setAcl

public void setAcl(String queue,
                   org.apache.hadoop.yarn.api.records.QueueACL acl,
                   String aclString)

getAcls

public Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> getAcls(String queue)

setAcls

public void setAcls(String queue,
                    Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> acls)

getQueues

public String[] getQueues(String queue)

setQueues

public void setQueues(String queue,
                      String[] subQueues)

getMinimumAllocation

public org.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()

getMaximumAllocation

public org.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()

getEnableUserMetrics

public boolean getEnableUserMetrics()


Copyright © 2012 Apache Software Foundation. All Rights Reserved.