RMNodeImplpublic interface RMNode
| Modifier and Type | Method | Description |
|---|---|---|
long |
calculateHeartBeatInterval(long defaultInterval,
long minInterval,
long maxInterval,
float speedupFactor,
float slowdownFactor) |
|
org.apache.hadoop.yarn.api.records.ResourceUtilization |
getAggregatedContainersUtilization() |
the aggregated resource utilization of the containers.
|
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getAllNodeAttributes() |
|
default org.apache.hadoop.yarn.api.records.Resource |
getAllocatedContainerResource() |
The total allocated resources to containers.
|
java.util.Map<java.lang.String,java.lang.Long> |
getAllocationTagsWithCount() |
Get the allocation tags and their counts associated with this node.
|
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> |
getAppsToCleanup() |
|
int |
getCommandPort() |
the command port for this node
|
java.util.List<org.apache.hadoop.yarn.api.records.ContainerId> |
getContainersToCleanUp() |
|
java.lang.Integer |
getDecommissioningTimeout() |
|
java.lang.String |
getHealthReport() |
the latest health report received from this node.
|
java.lang.String |
getHostName() |
the hostname of this node
|
java.lang.String |
getHttpAddress() |
the http-Address for this node.
|
int |
getHttpPort() |
the http port for this node
|
long |
getLastHealthReportTime() |
the time of the latest health report received from this node.
|
org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse |
getLastNodeHeartBeatResponse() |
|
org.apache.hadoop.net.Node |
getNode() |
the
Node information for this node. |
java.lang.String |
getNodeAddress() |
the ContainerManager address for this node.
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeID() |
the node id of of this node.
|
java.util.Set<java.lang.String> |
getNodeLabels() |
Get set of labels in this node
|
java.lang.String |
getNodeManagerVersion() |
the node manager version of the node received as part of the
registration with the resource manager.
|
org.apache.hadoop.yarn.api.records.ResourceUtilization |
getNodeUtilization() |
the total resource utilization of the node.
|
org.apache.hadoop.yarn.server.api.records.OpportunisticContainersStatus |
getOpportunisticContainersStatus() |
|
org.apache.hadoop.yarn.api.records.Resource |
getPhysicalResource() |
the physical resources in the node.
|
java.lang.String |
getRackName() |
The rack name for this node manager.
|
RMContext |
getRMContext() |
|
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> |
getRunningApps() |
|
org.apache.hadoop.yarn.api.records.NodeState |
getState() |
|
org.apache.hadoop.yarn.api.records.Resource |
getTotalCapability() |
the total available resource.
|
long |
getUntrackedTimeStamp() |
|
boolean |
isUpdatedCapability() |
If the total available resources has been updated.
|
java.util.List<UpdatedContainerInfo> |
pullContainerUpdates() |
Get and clear the list of containerUpdates accumulated across NM
heartbeats.
|
java.util.List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyIncreasedContainers() |
|
void |
resetLastNodeHeartBeatResponse() |
Reset lastNodeHeartbeatResponse's ID to 0.
|
void |
resetUpdatedCapability() |
Mark that the updated event has been processed.
|
void |
setAndUpdateNodeHeartbeatResponse(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse response) |
Update a
NodeHeartbeatResponse with the list of containers and
applications to clean up for this node, and the containers to be updated. |
void |
setUntrackedTimeStamp(long timeStamp) |
org.apache.hadoop.yarn.api.records.NodeId getNodeID()
java.lang.String getHostName()
int getCommandPort()
int getHttpPort()
java.lang.String getNodeAddress()
java.lang.String getHttpAddress()
java.lang.String getHealthReport()
long getLastHealthReportTime()
java.lang.String getNodeManagerVersion()
org.apache.hadoop.yarn.api.records.Resource getTotalCapability()
default org.apache.hadoop.yarn.api.records.Resource getAllocatedContainerResource()
boolean isUpdatedCapability()
void resetUpdatedCapability()
org.apache.hadoop.yarn.api.records.ResourceUtilization getAggregatedContainersUtilization()
org.apache.hadoop.yarn.api.records.ResourceUtilization getNodeUtilization()
org.apache.hadoop.yarn.api.records.Resource getPhysicalResource()
java.lang.String getRackName()
org.apache.hadoop.net.Node getNode()
Node information for this node.Node information for this node.org.apache.hadoop.yarn.api.records.NodeState getState()
java.util.List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToCleanUp()
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> getAppsToCleanup()
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> getRunningApps()
void setAndUpdateNodeHeartbeatResponse(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse response)
NodeHeartbeatResponse with the list of containers and
applications to clean up for this node, and the containers to be updated.response - the NodeHeartbeatResponse to updateorg.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse getLastNodeHeartBeatResponse()
void resetLastNodeHeartBeatResponse()
java.util.List<UpdatedContainerInfo> pullContainerUpdates()
java.util.Set<java.lang.String> getNodeLabels()
java.util.List<org.apache.hadoop.yarn.api.records.Container> pullNewlyIncreasedContainers()
org.apache.hadoop.yarn.server.api.records.OpportunisticContainersStatus getOpportunisticContainersStatus()
long getUntrackedTimeStamp()
void setUntrackedTimeStamp(long timeStamp)
java.lang.Integer getDecommissioningTimeout()
java.util.Map<java.lang.String,java.lang.Long> getAllocationTagsWithCount()
RMContext getRMContext()
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getAllNodeAttributes()
long calculateHeartBeatInterval(long defaultInterval,
long minInterval,
long maxInterval,
float speedupFactor,
float slowdownFactor)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.