Class NodeLabel
java.lang.Object
org.apache.hadoop.yarn.api.records.NodeLabel
- All Implemented Interfaces:
Comparable<NodeLabel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDEFAULT_NODE_LABEL_EXCLUSIVITYBy default, node label is exclusive or notstatic final StringDEFAULT_NODE_LABEL_PARTITIONDefault node label partition used for displaying.static final StringNODE_LABEL_EXPRESSION_NOT_SETNode Label expression not set . -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanabstract StringgetName()inthashCode()abstract booleanstatic NodeLabelnewInstance(String name) static NodeLabelnewInstance(String name, boolean isExclusive) abstract voidsetExclusivity(boolean isExclusive) abstract voidsetName(String name) toString()
-
Field Details
-
DEFAULT_NODE_LABEL_PARTITION
Default node label partition used for displaying.- See Also:
-
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_EXCLUSIVITYBy default, node label is exclusive or not- See Also:
-
-
Constructor Details
-
NodeLabel
public NodeLabel()
-
-
Method Details
-
newInstance
-
newInstance
-
getName
-
setName
-
isExclusive
@Public @Stable public abstract boolean isExclusive() -
setExclusivity
@Private @Unstable public abstract void setExclusivity(boolean isExclusive) -
compareTo
- Specified by:
compareToin interfaceComparable<NodeLabel>
-
equals
-
toString
-
hashCode
public int hashCode()
-