|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNode
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class SchedulerNode
Represents a YARN Cluster Node from the viewpoint of the scheduler.
Constructor Summary | |
---|---|
SchedulerNode()
|
Method Summary | |
---|---|
abstract org.apache.hadoop.yarn.api.records.Resource |
getAvailableResource()
Get available resources on the node. |
abstract org.apache.hadoop.yarn.api.records.NodeId |
getNodeID()
Get the ID of the node which contains both its hostname and port. |
abstract String |
getNodeName()
Get the name of the node for scheduling matching decisions. |
abstract int |
getNumContainers()
Get number of active containers on the node. |
abstract String |
getRackName()
Get rackname. |
abstract org.apache.hadoop.yarn.api.records.Resource |
getTotalResource()
Get total resources on the node. |
abstract org.apache.hadoop.yarn.api.records.Resource |
getUsedResource()
Get used resources on the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulerNode()
Method Detail |
---|
public abstract String getNodeName()
YarnConfiguration.RM_SCHEDULER_INCLUDE_PORT_IN_NODE_NAME
constant.
The main usecase of this is Yarn minicluster to be able to differentiate
node manager instances by their port number.
public abstract String getRackName()
public abstract org.apache.hadoop.yarn.api.records.Resource getUsedResource()
public abstract org.apache.hadoop.yarn.api.records.Resource getAvailableResource()
public abstract int getNumContainers()
public abstract org.apache.hadoop.yarn.api.records.Resource getTotalResource()
public abstract org.apache.hadoop.yarn.api.records.NodeId getNodeID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |