public abstract class AbstractLabel extends Object
Constructor and Description |
---|
AbstractLabel() |
AbstractLabel(String labelName) |
AbstractLabel(String labelName,
org.apache.hadoop.yarn.api.records.Resource resource,
int numActiveNMs) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(org.apache.hadoop.yarn.api.records.Resource nodeRes) |
String |
getLabelName() |
int |
getNumActiveNMs() |
org.apache.hadoop.yarn.api.records.Resource |
getResource() |
void |
removeNode(org.apache.hadoop.yarn.api.records.Resource nodeRes) |
public AbstractLabel()
public AbstractLabel(String labelName)
public AbstractLabel(String labelName, org.apache.hadoop.yarn.api.records.Resource resource, int numActiveNMs)
public void addNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)
public void removeNode(org.apache.hadoop.yarn.api.records.Resource nodeRes)
public org.apache.hadoop.yarn.api.records.Resource getResource()
public int getNumActiveNMs()
public String getLabelName()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.