@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class SchedulerNode extends Object
Constructor and Description |
---|
SchedulerNode() |
Modifier and Type | Method and Description |
---|---|
abstract Resource |
getAvailableResource()
Get available resources on the node.
|
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 Resource |
getTotalResource()
Get total resources on the node.
|
abstract Resource |
getUsedResource()
Get used resources on the node.
|
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 Resource getUsedResource()
public abstract Resource getAvailableResource()
public abstract int getNumContainers()
public abstract Resource getTotalResource()
Copyright © 2013 Apache Software Foundation. All rights reserved.