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