Class NodeLabel

java.lang.Object
org.apache.hadoop.yarn.api.records.NodeLabel
All Implemented Interfaces:
Comparable<NodeLabel>

@Public @Unstable public abstract class NodeLabel extends Object implements Comparable<NodeLabel>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    DEFAULT_NODE_LABEL_EXCLUSIVITY
    By default, node label is exclusive or not
    static final String
    DEFAULT_NODE_LABEL_PARTITION
    Default node label partition used for displaying.
    static final String
    NODE_LABEL_EXPRESSION_NOT_SET
    Node Label expression not set .
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    abstract String
     
    int
     
    abstract boolean
     
    static NodeLabel
    newInstance(String name)
     
    static NodeLabel
    newInstance(String name, boolean isExclusive)
     
    abstract void
    setExclusivity(boolean isExclusive)
     
    abstract void
    setName(String name)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_NODE_LABEL_PARTITION

      @Private @Unstable public static final String DEFAULT_NODE_LABEL_PARTITION
      Default node label partition used for displaying.
      See Also:
    • NODE_LABEL_EXPRESSION_NOT_SET

      @Private @Unstable public static final String NODE_LABEL_EXPRESSION_NOT_SET
      Node Label expression not set .
      See Also:
    • DEFAULT_NODE_LABEL_EXCLUSIVITY

      @Private @Unstable public static final boolean DEFAULT_NODE_LABEL_EXCLUSIVITY
      By default, node label is exclusive or not
      See Also:
  • Constructor Details

    • NodeLabel

      public NodeLabel()
  • Method Details

    • newInstance

      @Private @Unstable public static NodeLabel newInstance(String name)
    • newInstance

      @Private @Unstable public static NodeLabel newInstance(String name, boolean isExclusive)
    • getName

      @Public @Stable public abstract String getName()
    • setName

      @Private @Unstable public abstract void setName(String name)
    • isExclusive

      @Public @Stable public abstract boolean isExclusive()
    • setExclusivity

      @Private @Unstable public abstract void setExclusivity(boolean isExclusive)
    • compareTo

      public int compareTo(NodeLabel other)
      Specified by:
      compareTo in interface Comparable<NodeLabel>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object