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:
  • 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.