@InterfaceAudience.Private @InterfaceStability.Unstable public class FSSchedulerNode extends SchedulerNode
| Constructor and Description | 
|---|
| FSSchedulerNode(RMNode node,
               boolean usePortForNodeName) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | allocateContainer(RMContainer rmContainer,
                 boolean launchedOnNode)The Scheduler has allocated containers on this node to the given
 application. | 
| void | releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
                boolean releasedByNode)Release an allocated container on this node. | 
| void | reserveResource(SchedulerApplicationAttempt application,
               org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
               RMContainer container)Reserve container for the attempt on this node. | 
| void | unreserveResource(SchedulerApplicationAttempt application)Unreserve resources on this node. | 
allocateContainer, containerStarted, deductUnallocatedResource, equals, getAggregatedContainersUtilization, getAllocatedResource, getContainer, getContainersToKill, getCopiedListOfRunningContainers, getHttpAddress, getLabels, getLastHeartbeatMonotonicTime, getLaunchedContainers, getNodeAttributes, getNodeID, getNodeName, getNodeUtilization, getNumContainers, getPartition, getRackName, getReservedContainer, getRMNode, getRunningContainersWithAMsAtTheEnd, getTotalResource, getUnallocatedResource, hashCode, isOvercommitTimedOut, isOvercommitTimeOutSet, isValidContainer, notifyNodeUpdate, recoverContainer, setAggregatedContainersUtilization, setNodeUtilization, setOvercommitTimeOut, setReservedContainer, toString, updateLabels, updateNodeAttributes, updateResourceForReleasedContainer, updateTotalResourcepublic FSSchedulerNode(RMNode node, boolean usePortForNodeName)
public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container)
SchedulerNodereserveResource in class SchedulerNodeapplication - Application attempt asking for the reservation.schedulerKey - Priority of the reservation.container - Container reserving resources for.public void unreserveResource(SchedulerApplicationAttempt application)
SchedulerNodeunreserveResource in class SchedulerNodeapplication - Application attempt that had done the reservation.protected void allocateContainer(RMContainer rmContainer, boolean launchedOnNode)
allocateContainer in class SchedulerNodermContainer - Allocated containerlaunchedOnNode - True if the container has been launchedpublic void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
                             boolean releasedByNode)
releaseContainer in class SchedulerNodecontainerId - ID of container to be released.releasedByNode - whether the release originates from a node update.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.