@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class NodeLabel extends Object implements Comparable<NodeLabel>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_NODE_LABEL_EXCLUSIVITY
By default, node label is exclusive or not
|
static String |
DEFAULT_NODE_LABEL_PARTITION
Default node label partition used for displaying.
|
static String |
NODE_LABEL_EXPRESSION_NOT_SET
Node Label expression not set .
|
Constructor and Description |
---|
NodeLabel() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeLabel other) |
boolean |
equals(Object obj) |
abstract String |
getName() |
int |
hashCode() |
abstract boolean |
isExclusive() |
static NodeLabel |
newInstance(String name) |
static NodeLabel |
newInstance(String name,
boolean isExclusive) |
abstract void |
setExclusivity(boolean isExclusive) |
abstract void |
setName(String name) |
String |
toString() |
@InterfaceAudience.Private @InterfaceStability.Unstable public static final String DEFAULT_NODE_LABEL_PARTITION
@InterfaceAudience.Private @InterfaceStability.Unstable public static final String NODE_LABEL_EXPRESSION_NOT_SET
@InterfaceAudience.Private @InterfaceStability.Unstable public static final boolean DEFAULT_NODE_LABEL_EXCLUSIVITY
@InterfaceAudience.Private @InterfaceStability.Unstable public static NodeLabel newInstance(String name)
@InterfaceAudience.Private @InterfaceStability.Unstable public static NodeLabel newInstance(String name, boolean isExclusive)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getName()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setName(String name)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract boolean isExclusive()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setExclusivity(boolean isExclusive)
public int compareTo(NodeLabel other)
compareTo
in interface Comparable<NodeLabel>
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.