Class RMNodeAttribute
java.lang.Object
org.apache.hadoop.yarn.nodelabels.AbstractLabel
org.apache.hadoop.yarn.nodelabels.RMNodeAttribute
Reference of NodeAttribute in RM.
-
Constructor Summary
ConstructorsConstructorDescriptionRMNodeAttribute(String labelName, org.apache.hadoop.yarn.api.records.Resource res, int activeNMs, org.apache.hadoop.yarn.api.records.NodeAttribute attribute) RMNodeAttribute(org.apache.hadoop.yarn.api.records.NodeAttribute attribute) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNode(String node, AttributeValue attributeValue) booleanorg.apache.hadoop.yarn.api.records.NodeAttributeorg.apache.hadoop.yarn.api.records.NodeAttributeTypeinthashCode()voidremoveNode(String node) voidsetAttribute(org.apache.hadoop.yarn.api.records.NodeAttribute attribute) Methods inherited from class org.apache.hadoop.yarn.nodelabels.AbstractLabel
addNode, getLabelName, getNumActiveNMs, getResource, removeNode
-
Constructor Details
-
RMNodeAttribute
public RMNodeAttribute(org.apache.hadoop.yarn.api.records.NodeAttribute attribute) -
RMNodeAttribute
public RMNodeAttribute(String labelName, org.apache.hadoop.yarn.api.records.Resource res, int activeNMs, org.apache.hadoop.yarn.api.records.NodeAttribute attribute)
-
-
Method Details
-
getAttribute
public org.apache.hadoop.yarn.api.records.NodeAttribute getAttribute() -
setAttribute
public void setAttribute(org.apache.hadoop.yarn.api.records.NodeAttribute attribute) -
getAttributeType
public org.apache.hadoop.yarn.api.records.NodeAttributeType getAttributeType() -
addNode
-
removeNode
-
getAssociatedNodeIds
-
hashCode
public int hashCode() -
equals
-