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 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()