Modifier and Type | Field and Description |
---|---|
static String |
DOT |
static String |
MEMORY |
static String |
NODES |
static String |
OVERCOMMIT_TIMEOUT |
static String |
PREFIX |
static String |
VCORES |
Constructor and Description |
---|
DynamicResourceConfiguration() |
DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration) |
DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration,
InputStream drInputStream) |
Modifier and Type | Method and Description |
---|---|
int |
getMemoryPerNode(String node) |
Map<org.apache.hadoop.yarn.api.records.NodeId,org.apache.hadoop.yarn.api.records.ResourceOption> |
getNodeResourceMap() |
String[] |
getNodes() |
int |
getOverCommitTimeoutPerNode(String node) |
int |
getVcoresPerNode(String node) |
void |
setMemoryPerNode(String node,
int memory) |
void |
setNodes(String[] nodes) |
void |
setOverCommitTimeoutPerNode(String node,
int overCommitTimeout) |
void |
setVcoresPerNode(String node,
int vcores) |
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpDeprecatedKeys, get, get, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setSocketAddr, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml
@InterfaceAudience.Private public static final String PREFIX
@InterfaceAudience.Private public static final String DOT
@InterfaceAudience.Private public static final String NODES
@InterfaceAudience.Private public static final String VCORES
@InterfaceAudience.Private public static final String MEMORY
@InterfaceAudience.Private public static final String OVERCOMMIT_TIMEOUT
public DynamicResourceConfiguration()
public DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration)
public DynamicResourceConfiguration(org.apache.hadoop.conf.Configuration configuration, InputStream drInputStream)
public int getVcoresPerNode(String node)
public void setVcoresPerNode(String node, int vcores)
public int getMemoryPerNode(String node)
public void setMemoryPerNode(String node, int memory)
public int getOverCommitTimeoutPerNode(String node)
public void setOverCommitTimeoutPerNode(String node, int overCommitTimeout)
public String[] getNodes()
public void setNodes(String[] nodes)
public Map<org.apache.hadoop.yarn.api.records.NodeId,org.apache.hadoop.yarn.api.records.ResourceOption> getNodeResourceMap()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.