Class DynamicResourceConfiguration

java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.hadoop.yarn.server.resourcemanager.resource.DynamicResourceConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

public class DynamicResourceConfiguration 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.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration)
     
    DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration, InputStream drInputStream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    Map<org.apache.hadoop.yarn.api.records.NodeId,org.apache.hadoop.yarn.api.records.ResourceOption>
     
     
    int
     
    int
     
    void
    setMemoryPerNode(String node, int memory)
     
    void
    setNodes(String[] nodes)
     
    void
    setOverCommitTimeoutPerNode(String node, int overCommitTimeout)
     
    void
    setVcoresPerNode(String node, int vcores)
     

    Methods inherited from class org.apache.hadoop.conf.Configuration

    addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addTags, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, getAllPropertiesByTag, getAllPropertiesByTags, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getEnumSet, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStorageSize, getStorageSize, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDurationHelper, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, isPropertyTag, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStorageSize, setStrings, setTimeDuration, size, substituteCommonVariables, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXml, writeXml

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

  • Constructor Details

    • DynamicResourceConfiguration

      public DynamicResourceConfiguration()
    • DynamicResourceConfiguration

      public DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration)
    • DynamicResourceConfiguration

      public DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration, InputStream drInputStream)
  • Method Details

    • getVcoresPerNode

      public int getVcoresPerNode(String node)
    • setVcoresPerNode

      public void setVcoresPerNode(String node, int vcores)
    • getMemoryPerNode

      public int getMemoryPerNode(String node)
    • setMemoryPerNode

      public void setMemoryPerNode(String node, int memory)
    • getOverCommitTimeoutPerNode

      public int getOverCommitTimeoutPerNode(String node)
    • setOverCommitTimeoutPerNode

      public void setOverCommitTimeoutPerNode(String node, int overCommitTimeout)
    • getNodes

      public String[] getNodes()
    • setNodes

      public void setNodes(String[] nodes)
    • getNodeResourceMap

      public Map<org.apache.hadoop.yarn.api.records.NodeId,org.apache.hadoop.yarn.api.records.ResourceOption> getNodeResourceMap()