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

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

# Class GetNodesToAttributesRequest

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

@Public @Evolving public abstract class GetNodesToAttributesRequest extends Object

The request from clients to get nodes to attributes mapping in the cluster from the `ResourceManager`.

See Also:
  - `(GetNodesToAttributesRequest)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetNodesToAttributesRequest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract Set<String>`
  `getHostNames()`
  Get hostnames for which mapping is required.
  `static GetNodesToAttributesRequest`
  `newInstance(Set<String> hostNames)`
  `abstract void`
  `setHostNames(Set<String> hostnames)`
  Set hostnames for which mapping is required.

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

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

- ## Constructor Details

  - ### GetNodesToAttributesRequest

    public GetNodesToAttributesRequest()

- ## Method Details

  - ### newInstance

    public static GetNodesToAttributesRequest newInstance(Set<String> hostNames)

  - ### setHostNames

    @Public @Evolving public abstract void setHostNames(Set<String> hostnames)
    Set hostnames for which mapping is required.
    Parameters:
      `hostnames` - Set of hostnames.

  - ### getHostNames

    @Public @Evolving public abstract Set<String> getHostNames()
    Get hostnames for which mapping is required.
    Returns:
      Set of hostnames.