Class AbstractLabel
java.lang.Object
org.apache.hadoop.yarn.nodelabels.AbstractLabel
- Direct Known Subclasses:
RMNodeAttribute,RMNodeLabel
Generic class capturing the information required commonly across Partitions
and Attributes.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLabel(String labelName) AbstractLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource resource, int numActiveNMs) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNode(org.apache.hadoop.yarn.api.records.Resource nodeRes) intorg.apache.hadoop.yarn.api.records.ResourcevoidremoveNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)
-
Constructor Details
-
AbstractLabel
public AbstractLabel() -
AbstractLabel
-
AbstractLabel
public AbstractLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource resource, int numActiveNMs)
-
-
Method Details
-
addNode
public void addNode(org.apache.hadoop.yarn.api.records.Resource nodeRes) -
removeNode
public void removeNode(org.apache.hadoop.yarn.api.records.Resource nodeRes) -
getResource
public org.apache.hadoop.yarn.api.records.Resource getResource() -
getNumActiveNMs
public int getNumActiveNMs() -
getLabelName
-