Class GetAttributesToNodesRequest

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetAttributesToNodesRequest

@Public @Evolving public abstract class GetAttributesToNodesRequest extends Object

The request from clients to get node to attribute value mapping for all or given set of Node AttributeKey's in the cluster from the ResourceManager.

See Also:
  • Constructor Details

    • GetAttributesToNodesRequest

      public GetAttributesToNodesRequest()
  • Method Details

    • newInstance

      public static GetAttributesToNodesRequest newInstance()
    • newInstance

      public static GetAttributesToNodesRequest newInstance(Set<NodeAttributeKey> attributes)
    • setNodeAttributes

      @Public @Unstable public abstract void setNodeAttributes(Set<NodeAttributeKey> attributes)
      Set node attributeKeys for which the mapping of hostname to attribute value is required.
      Parameters:
      attributes - Set of NodeAttributeKey provided.
    • getNodeAttributes

      @Public @Unstable public abstract Set<NodeAttributeKey> getNodeAttributes()
      Get node attributeKeys for which mapping of hostname to attribute value is required.
      Returns:
      Set of NodeAttributeKey