public static class NodeAttributesManagerImpl.Host extends Object
Host can have multiple Nodes.| Constructor and Description | 
|---|
| Host(String hostName) | 
| Host(String hostName,
    Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes) | 
| Host(String hostName,
    Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes,
    org.apache.hadoop.yarn.api.records.Resource resource,
    boolean isActive) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | activateNode(org.apache.hadoop.yarn.api.records.Resource r) | 
| void | addAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping) | 
| void | deactivateNode() | 
| String | getHostName() | 
| org.apache.hadoop.yarn.api.records.Resource | getResource() | 
| boolean | isActive() | 
| void | removeAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping) | 
| void | replaceAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping,
                 String prefix) | 
| void | setAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes) | 
| void | setHostName(String hostName) | 
| void | setResource(org.apache.hadoop.yarn.api.records.Resource resourceParam) | 
public Host(String hostName)
public Host(String hostName, Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes)
public void setAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes)
public void removeAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping)
public void replaceAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping, String prefix)
public void addAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping)
public org.apache.hadoop.yarn.api.records.Resource getResource()
public void setResource(org.apache.hadoop.yarn.api.records.Resource resourceParam)
public boolean isActive()
public void deactivateNode()
public void activateNode(org.apache.hadoop.yarn.api.records.Resource r)
public String getHostName()
public void setHostName(String hostName)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.