public interface RMNode
Modifier and Type | Method and Description |
---|---|
List<ApplicationId> |
getAppsToCleanup() |
int |
getCommandPort()
the command port for this node
|
List<ContainerId> |
getContainersToCleanUp() |
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.
|
NodeHeartbeatResponse |
getLastNodeHeartBeatResponse() |
Node |
getNode()
the
Node information for this node. |
String |
getNodeAddress()
the ContainerManager address for this node.
|
NodeId |
getNodeID()
the node id of of this node.
|
String |
getRackName()
The rack name for this node manager.
|
NodeState |
getState() |
Resource |
getTotalCapability()
the total available resource.
|
List<UpdatedContainerInfo> |
pullContainerUpdates()
Get and clear the list of containerUpdates accumulated across NM
heartbeats.
|
void |
updateNodeHeartbeatResponseForCleanup(NodeHeartbeatResponse response)
Update a
NodeHeartbeatResponse with the list of containers and
applications to clean up for this node. |
NodeId getNodeID()
String getHostName()
int getCommandPort()
int getHttpPort()
String getNodeAddress()
String getHttpAddress()
String getHealthReport()
long getLastHealthReportTime()
Resource getTotalCapability()
String getRackName()
NodeState getState()
List<ContainerId> getContainersToCleanUp()
List<ApplicationId> getAppsToCleanup()
void updateNodeHeartbeatResponseForCleanup(NodeHeartbeatResponse response)
NodeHeartbeatResponse
with the list of containers and
applications to clean up for this node.response
- the NodeHeartbeatResponse
to updateNodeHeartbeatResponse getLastNodeHeartBeatResponse()
List<UpdatedContainerInfo> pullContainerUpdates()
Copyright © 2013 Apache Software Foundation. All rights reserved.