org.apache.hadoop.yarn.api.records
Interface NodeHealthStatus

All Known Implementing Classes:
NodeHealthStatusPBImpl

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface NodeHealthStatus

NodeHealthStatus is a summary of the health status of the node.

It includes information such as:

See Also:
NodeReport, ClientRMProtocol.getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest)

Method Summary
 String getHealthReport()
          Get the diagnostic health report of the node.
 boolean getIsNodeHealthy()
          Is the node healthy?
 long getLastHealthReportTime()
          Get the last timestamp at which the health report was received.
 void setHealthReport(String healthReport)
           
 void setIsNodeHealthy(boolean isNodeHealthy)
           
 void setLastHealthReportTime(long lastHealthReport)
           
 

Method Detail

getIsNodeHealthy

@InterfaceAudience.Public
@InterfaceStability.Stable
boolean getIsNodeHealthy()
Is the node healthy?

Returns:
true if the node is healthy, else false

setIsNodeHealthy

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setIsNodeHealthy(boolean isNodeHealthy)

getHealthReport

@InterfaceAudience.Public
@InterfaceStability.Stable
String getHealthReport()
Get the diagnostic health report of the node.

Returns:
diagnostic health report of the node

setHealthReport

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setHealthReport(String healthReport)

getLastHealthReportTime

@InterfaceAudience.Public
@InterfaceStability.Stable
long getLastHealthReportTime()
Get the last timestamp at which the health report was received.

Returns:
last timestamp at which the health report was received

setLastHealthReportTime

@InterfaceAudience.Private
@InterfaceStability.Unstable
void setLastHealthReportTime(long lastHealthReport)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.