Class NodeHealthStatus

java.lang.Object
org.apache.hadoop.yarn.server.api.records.NodeHealthStatus
Direct Known Subclasses:
NodeHealthStatusPBImpl

@Public @Stable public abstract class NodeHealthStatus extends Object
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:
  • NodeReport
  • ApplicationClientProtocol.getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest)
  • 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:
      true if the node is healthy, else false
    • setIsNodeHealthy

      @Private @Unstable public abstract void setIsNodeHealthy(boolean isNodeHealthy)
    • getHealthReport

      @Public @Stable public abstract String getHealthReport()
      Get the diagnostic health report of the node.
      Returns:
      diagnostic health report of the node
    • setHealthReport

      @Private @Unstable public abstract void setHealthReport(String healthReport)
    • 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)