|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.NodeReport
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class NodeReport
NodeReport is a summary of runtime information of a
node in the cluster.
It includes details such as:
NodeId of the node.Resource on the node.Resource of the node.
ApplicationClientProtocol.getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest)| Constructor Summary | |
|---|---|
NodeReport()
|
|
| Method Summary | |
|---|---|
abstract Resource |
getCapability()
Get the total Resource on the node. |
abstract String |
getHealthReport()
Get the diagnostic health report of the node. |
abstract String |
getHttpAddress()
Get the http address of the node. |
abstract long |
getLastHealthReportTime()
Get the last timestamp at which the health report was received. |
abstract NodeId |
getNodeId()
Get the NodeId of the node. |
abstract NodeState |
getNodeState()
Get the NodeState of the node. |
abstract int |
getNumContainers()
Get the number of allocated containers on the node. |
abstract String |
getRackName()
Get the rack name for the node. |
abstract Resource |
getUsed()
Get used Resource on the node. |
static NodeReport |
newInstance(NodeId nodeId,
NodeState nodeState,
String httpAddress,
String rackName,
Resource used,
Resource capability,
int numContainers,
String healthReport,
long lastHealthReportTime)
|
abstract void |
setCapability(Resource capability)
|
abstract void |
setHealthReport(String healthReport)
|
abstract void |
setHttpAddress(String httpAddress)
|
abstract void |
setLastHealthReportTime(long lastHealthReport)
|
abstract void |
setNodeId(NodeId nodeId)
|
abstract void |
setNodeState(NodeState nodeState)
|
abstract void |
setNumContainers(int numContainers)
|
abstract void |
setRackName(String rackName)
|
abstract void |
setUsed(Resource used)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeReport()
| Method Detail |
|---|
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static NodeReport newInstance(NodeId nodeId,
NodeState nodeState,
String httpAddress,
String rackName,
Resource used,
Resource capability,
int numContainers,
String healthReport,
long lastHealthReportTime)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract NodeId getNodeId()
NodeId of the node.
NodeId of the node@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNodeId(NodeId nodeId)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract NodeState getNodeState()
NodeState of the node.
NodeState of the node@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNodeState(NodeState nodeState)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHttpAddress()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setHttpAddress(String httpAddress)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getRackName()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setRackName(String rackName)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getUsed()
Resource on the node.
Resource on the node@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setUsed(Resource used)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getCapability()
Resource on the node.
Resource on the node@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setCapability(Resource capability)
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getNumContainers()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumContainers(int numContainers)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHealthReport()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setHealthReport(String healthReport)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getLastHealthReportTime()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setLastHealthReportTime(long lastHealthReport)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||