Class NodeHealthStatus
java.lang.Object
org.apache.hadoop.yarn.server.api.records.NodeHealthStatus
- Direct Known Subclasses:
NodeHealthStatusPBImpl
NodeHealthStatus is a summary of the health status of the node.
It includes information such as:
- An indicator of whether the node is healthy, as determined by the health-check script.
- The previous time at which the health status was reported.
- A diagnostic report on the health status.
- See Also:
-
NodeReportApplicationClientProtocol.getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet the diagnostic health report of the node.abstract booleanIs the node healthy?abstract longGet the last timestamp at which the health report was received.static NodeHealthStatusnewInstance(boolean isNodeHealthy, String healthReport, long lastHealthReport) abstract voidsetHealthReport(String healthReport) abstract voidsetIsNodeHealthy(boolean isNodeHealthy) abstract voidsetLastHealthReportTime(long lastHealthReport)
-
Constructor Details
-
NodeHealthStatus
public NodeHealthStatus()
-
-
Method Details
-
newInstance
@Private public static NodeHealthStatus newInstance(boolean isNodeHealthy, String healthReport, long lastHealthReport) -
getIsNodeHealthy
@Public @Stable public abstract boolean getIsNodeHealthy()Is the node healthy?- Returns:
trueif the node is healthy, elsefalse
-
setIsNodeHealthy
@Private @Unstable public abstract void setIsNodeHealthy(boolean isNodeHealthy) -
getHealthReport
Get the diagnostic health report of the node.- Returns:
- diagnostic health report of the node
-
setHealthReport
-
getLastHealthReportTime
@Public @Stable public abstract long getLastHealthReportTime()Get the last timestamp at which the health report was received.- Returns:
- last timestamp at which the health report was received
-
setLastHealthReportTime
@Private @Unstable public abstract void setLastHealthReportTime(long lastHealthReport)
-