public class RMNodeLabel extends AbstractLabel implements Comparable<RMNodeLabel>
Modifier | Constructor and Description |
---|---|
|
RMNodeLabel(org.apache.hadoop.yarn.api.records.NodeLabel nodeLabel) |
|
RMNodeLabel(String labelName) |
protected |
RMNodeLabel(String labelName,
org.apache.hadoop.yarn.api.records.Resource res,
int activeNMs,
boolean exclusive) |
Modifier and Type | Method and Description |
---|---|
void |
addNodeId(org.apache.hadoop.yarn.api.records.NodeId node) |
int |
compareTo(RMNodeLabel o) |
boolean |
equals(Object obj) |
Set<org.apache.hadoop.yarn.api.records.NodeId> |
getAssociatedNodeIds() |
RMNodeLabel |
getCopy() |
boolean |
getIsExclusive() |
org.apache.hadoop.yarn.api.records.NodeLabel |
getNodeLabel() |
int |
hashCode() |
void |
removeNodeId(org.apache.hadoop.yarn.api.records.NodeId node) |
void |
setIsExclusive(boolean exclusive) |
addNode, getLabelName, getNumActiveNMs, getResource, removeNode
public RMNodeLabel(org.apache.hadoop.yarn.api.records.NodeLabel nodeLabel)
public RMNodeLabel(String labelName)
protected RMNodeLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource res, int activeNMs, boolean exclusive)
public void setIsExclusive(boolean exclusive)
public boolean getIsExclusive()
public RMNodeLabel getCopy()
public int compareTo(RMNodeLabel o)
compareTo
in interface Comparable<RMNodeLabel>
public org.apache.hadoop.yarn.api.records.NodeLabel getNodeLabel()
public void addNodeId(org.apache.hadoop.yarn.api.records.NodeId node)
public void removeNodeId(org.apache.hadoop.yarn.api.records.NodeId node)
public Set<org.apache.hadoop.yarn.api.records.NodeId> getAssociatedNodeIds()
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.