org.apache.hadoop.yarn.server.api.records
Class NodeHealthStatus

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

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class NodeHealthStatus
extends Object

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

It includes information such as:

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

Constructor Summary
NodeHealthStatus()
           
 
Method Summary
abstract  String getHealthReport()
          Get the diagnostic health report of the node.
abstract  boolean getIsNodeHealthy()
          Is the node healthy?
abstract  long getLastHealthReportTime()
          Get the last timestamp at which the health report was received.
static NodeHealthStatus newInstance(boolean isNodeHealthy, String healthReport, long lastHealthReport)
           
abstract  void setHealthReport(String healthReport)
           
abstract  void setIsNodeHealthy(boolean isNodeHealthy)
           
abstract  void setLastHealthReportTime(long lastHealthReport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeHealthStatus

public NodeHealthStatus()
Method Detail

newInstance

@InterfaceAudience.Private
public static NodeHealthStatus newInstance(boolean isNodeHealthy,
                                                                     String healthReport,
                                                                     long lastHealthReport)

getIsNodeHealthy

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

Returns:
true if the node is healthy, else false

setIsNodeHealthy

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

getHealthReport

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

Returns:
diagnostic health report of the node

setHealthReport

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

getLastHealthReportTime

@InterfaceAudience.Public
@InterfaceStability.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

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.