GetNodesToAttributesResponse (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.protocolrecords, class: GetNodesToAttributesResponse

Package org.apache.hadoop.yarn.api.protocolrecords

# Class GetNodesToAttributesResponse

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

@Public @Evolving public abstract class GetNodesToAttributesResponse extends Object

The response sent by the `ResourceManager` to a client requesting nodes to attributes mapping.

See Also:
  - `(GetNodesToAttributesRequest)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetNodesToAttributesResponse()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract Map<String,Set<NodeAttribute>>`
  `getNodeToAttributes()`
  Get hostnames to NodeAttributes mapping.
  `static GetNodesToAttributesResponse`
  `newInstance(Map<String,Set<NodeAttribute>> map)`
  `abstract void`
  `setNodeToAttributes(Map<String,Set<NodeAttribute>> map)`

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### GetNodesToAttributesResponse

    public GetNodesToAttributesResponse()

- ## Method Details

  - ### newInstance

    public static GetNodesToAttributesResponse newInstance(Map<String,Set<NodeAttribute>> map)

  - ### setNodeToAttributes

    @Public @Evolving public abstract void setNodeToAttributes(Map<String,Set<NodeAttribute>> map)

  - ### getNodeToAttributes

    @Public @Evolving public abstract Map<String,Set<NodeAttribute>> getNodeToAttributes()
    Get hostnames to NodeAttributes mapping.
    Returns:
      Map of host to attributes.