org.apache.hadoop.yarn.api.records.impl.pb
Class NodeHealthStatusPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.NodeHealthStatusProto>
org.apache.hadoop.yarn.api.records.impl.pb.NodeHealthStatusPBImpl
- All Implemented Interfaces:
- NodeHealthStatus
public class NodeHealthStatusPBImpl
- extends ProtoBase<YarnProtos.NodeHealthStatusProto>
- implements NodeHealthStatus
NodeHealthStatusPBImpl
public NodeHealthStatusPBImpl()
NodeHealthStatusPBImpl
public NodeHealthStatusPBImpl(YarnProtos.NodeHealthStatusProto proto)
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.