Class NodeAttributesManagerImpl.Host

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.nodelabels.NodeAttributesManagerImpl.Host
Enclosing class:
NodeAttributesManagerImpl

public static class NodeAttributesManagerImpl.Host extends Object
A Host can have multiple Nodes.
  • Constructor Summary

    Constructors
    Constructor
    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)
     
  • Method Summary

    Modifier and Type
    Method
    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
     
     
    org.apache.hadoop.yarn.api.records.Resource
     
    boolean
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Host

      public Host(String hostName)
    • Host

      public Host(String hostName, Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes)
    • Host

      public 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)
  • Method Details

    • setAttributes

      public void setAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributes)
    • removeAttributes

      public void removeAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping)
    • replaceAttributes

      public void replaceAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping, String prefix)
    • addAttributes

      public void addAttributes(Map<org.apache.hadoop.yarn.api.records.NodeAttribute,org.apache.hadoop.yarn.nodelabels.AttributeValue> attributesMapping)
    • getResource

      public org.apache.hadoop.yarn.api.records.Resource getResource()
    • setResource

      public void setResource(org.apache.hadoop.yarn.api.records.Resource resourceParam)
    • isActive

      public boolean isActive()
    • deactivateNode

      public void deactivateNode()
    • activateNode

      public void activateNode(org.apache.hadoop.yarn.api.records.Resource r)
    • getHostName

      public String getHostName()
    • setHostName

      public void setHostName(String hostName)