org.apache.hadoop.yarn.api.records.impl.pb
Class NodeHealthStatusPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.NodeHealthStatusProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.NodeHealthStatusPBImpl
All Implemented Interfaces:
NodeHealthStatus

public class NodeHealthStatusPBImpl
extends ProtoBase<YarnProtos.NodeHealthStatusProto>
implements NodeHealthStatus


Constructor Summary
NodeHealthStatusPBImpl()
           
NodeHealthStatusPBImpl(YarnProtos.NodeHealthStatusProto proto)
           
 
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.
 YarnProtos.NodeHealthStatusProto getProto()
           
 void setHealthReport(String healthReport)
           
 void setIsNodeHealthy(boolean isNodeHealthy)
           
 void setLastHealthReportTime(long lastHealthReport)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeHealthStatusPBImpl

public NodeHealthStatusPBImpl()

NodeHealthStatusPBImpl

public NodeHealthStatusPBImpl(YarnProtos.NodeHealthStatusProto proto)
Method Detail

getProto

public YarnProtos.NodeHealthStatusProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.NodeHealthStatusProto>

getIsNodeHealthy

public boolean getIsNodeHealthy()
Description copied from interface: NodeHealthStatus
Is the node healthy?

Specified by:
getIsNodeHealthy in interface NodeHealthStatus
Returns:
true if the node is healthy, else false

setIsNodeHealthy

public void setIsNodeHealthy(boolean isNodeHealthy)
Specified by:
setIsNodeHealthy in interface NodeHealthStatus

getHealthReport

public String getHealthReport()
Description copied from interface: NodeHealthStatus
Get the diagnostic health report of the node.

Specified by:
getHealthReport in interface NodeHealthStatus
Returns:
diagnostic health report of the node

setHealthReport

public void setHealthReport(String healthReport)
Specified by:
setHealthReport in interface NodeHealthStatus

getLastHealthReportTime

public long getLastHealthReportTime()
Description copied from interface: NodeHealthStatus
Get the last timestamp at which the health report was received.

Specified by:
getLastHealthReportTime in interface NodeHealthStatus
Returns:
last timestamp at which the health report was received

setLastHealthReportTime

public void setLastHealthReportTime(long lastHealthReport)
Specified by:
setLastHealthReportTime in interface NodeHealthStatus


Copyright © 2012 Apache Software Foundation. All Rights Reserved.