public class NodeHealthStatusPBImpl extends NodeHealthStatus
Constructor and Description |
---|
NodeHealthStatusPBImpl() |
NodeHealthStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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.
|
org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto |
getProto() |
int |
hashCode() |
void |
setHealthReport(String healthReport) |
void |
setIsNodeHealthy(boolean isNodeHealthy) |
void |
setLastHealthReportTime(long lastHealthReport) |
String |
toString() |
newInstance
public NodeHealthStatusPBImpl()
public NodeHealthStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto proto)
public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto getProto()
public boolean getIsNodeHealthy()
NodeHealthStatus
getIsNodeHealthy
in class NodeHealthStatus
true
if the node is healthy, else false
public void setIsNodeHealthy(boolean isNodeHealthy)
setIsNodeHealthy
in class NodeHealthStatus
public String getHealthReport()
NodeHealthStatus
getHealthReport
in class NodeHealthStatus
public void setHealthReport(String healthReport)
setHealthReport
in class NodeHealthStatus
public long getLastHealthReportTime()
NodeHealthStatus
getLastHealthReportTime
in class NodeHealthStatus
public void setLastHealthReportTime(long lastHealthReport)
setLastHealthReportTime
in class NodeHealthStatus
Copyright © 2020 Apache Software Foundation. All rights reserved.