AbstractLabel (Apache Hadoop YARN Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.nodelabels, class: AbstractLabel

Package org.apache.hadoop.yarn.nodelabels

# Class AbstractLabel

java.lang.Object
org.apache.hadoop.yarn.nodelabels.AbstractLabel

Direct Known Subclasses:
  `RMNodeAttribute`, `RMNodeLabel`

public abstract class AbstractLabel extends Object
Generic class capturing the information required commonly across Partitions and Attributes.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractLabel()`
  `AbstractLabel(String labelName)`
  `AbstractLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource resource, int numActiveNMs)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)`
  `String`
  `getLabelName()`
  `int`
  `getNumActiveNMs()`
  `org.apache.hadoop.yarn.api.records.Resource`
  `getResource()`
  `void`
  `removeNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)`

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

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

- ## Constructor Details

  - ### AbstractLabel

    public AbstractLabel()

  - ### AbstractLabel

    public AbstractLabel(String labelName)

  - ### AbstractLabel

    public AbstractLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource resource, int numActiveNMs)

- ## Method Details

  - ### addNode

    public void addNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)

  - ### removeNode

    public void removeNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)

  - ### getResource

    public org.apache.hadoop.yarn.api.records.Resource getResource()

  - ### getNumActiveNMs

    public int getNumActiveNMs()

  - ### getLabelName

    public String getLabelName()