NodeAttributeKey (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records, class: NodeAttributeKey

Package org.apache.hadoop.yarn.api.records

# Class NodeAttributeKey

java.lang.Object
org.apache.hadoop.yarn.api.records.NodeAttributeKey

@Public @Unstable public abstract class NodeAttributeKey extends Object

Node AttributeKey uniquely identifies a given Node Attribute. Node Attribute is identified based on attribute prefix and name.

Node Attribute Prefix is used as namespace to segregate the attributes.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NodeAttributeKey()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract String`
  `getAttributeName()`
  `abstract String`
  `getAttributePrefix()`
  `static NodeAttributeKey`
  `newInstance(String attributeName)`
  `static NodeAttributeKey`
  `newInstance(String attributePrefix, String attributeName)`
  `abstract void`
  `setAttributeName(String attributeName)`
  `abstract void`
  `setAttributePrefix(String attributePrefix)`

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

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

- ## Constructor Details

  - ### NodeAttributeKey

    public NodeAttributeKey()

- ## Method Details

  - ### newInstance

    public static NodeAttributeKey newInstance(String attributeName)

  - ### newInstance

    public static NodeAttributeKey newInstance(String attributePrefix, String attributeName)

  - ### getAttributePrefix

    @Public @Unstable public abstract String getAttributePrefix()

  - ### setAttributePrefix

    @Public @Unstable public abstract void setAttributePrefix(String attributePrefix)

  - ### getAttributeName

    @Public @Unstable public abstract String getAttributeName()

  - ### setAttributeName

    @Public @Unstable public abstract void setAttributeName(String attributeName)