public interface RMNode
Modifier and Type | Method and 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.
|
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getAllNodeAttributes() |
Map<String,Long> |
getAllocationTagsWithCount()
Get the allocation tags and their counts associated with this node.
|
List<org.apache.hadoop.yarn.api.records.ApplicationId> |
getAppsToCleanup() |
int |
getCommandPort()
the command port for this node
|
List<org.apache.hadoop.yarn.api.records.ContainerId> |
getContainersToCleanUp() |
Integer |
getDecommissioningTimeout() |
String |
getHealthReport()
the latest health report received from this node.
|
String |
getHostName()
the hostname of this node
|
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. |
String |
getNodeAddress()
the ContainerManager address for this node.
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeID()
the node id of of this node.
|
Set<String> |
getNodeLabels()
Get set of labels in this node
|
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.
|
String |
getRackName()
The rack name for this node manager.
|
RMContext |
getRMContext() |
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.
|
List<UpdatedContainerInfo> |
pullContainerUpdates()
Get and clear the list of containerUpdates accumulated across NM
heartbeats.
|
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()
String getHostName()
int getCommandPort()
int getHttpPort()
String getNodeAddress()
String getHttpAddress()
String getHealthReport()
long getLastHealthReportTime()
String getNodeManagerVersion()
org.apache.hadoop.yarn.api.records.Resource getTotalCapability()
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()
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()
List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToCleanUp()
List<org.apache.hadoop.yarn.api.records.ApplicationId> getAppsToCleanup()
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()
List<UpdatedContainerInfo> pullContainerUpdates()
Set<String> getNodeLabels()
List<org.apache.hadoop.yarn.api.records.Container> pullNewlyIncreasedContainers()
org.apache.hadoop.yarn.server.api.records.OpportunisticContainersStatus getOpportunisticContainersStatus()
long getUntrackedTimeStamp()
void setUntrackedTimeStamp(long timeStamp)
Integer getDecommissioningTimeout()
Map<String,Long> getAllocationTagsWithCount()
RMContext getRMContext()
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getAllNodeAttributes()
long calculateHeartBeatInterval(long defaultInterval, long minInterval, long maxInterval, float speedupFactor, float slowdownFactor)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.