@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class SchedulerNode extends Object
| Constructor and Description |
|---|
SchedulerNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyDeltaOnAvailableResource(org.apache.hadoop.yarn.api.records.Resource deltaResource)
Apply delta resource on node's available resource.
|
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.
|
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 void applyDeltaOnAvailableResource(org.apache.hadoop.yarn.api.records.Resource deltaResource)
deltaResource - the delta of resource need to apply to nodepublic abstract org.apache.hadoop.yarn.api.records.Resource getTotalResource()
public abstract org.apache.hadoop.yarn.api.records.NodeId getNodeID()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.