Class NodeHealthStatusPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.records.NodeHealthStatus
org.apache.hadoop.yarn.server.api.records.impl.pb.NodeHealthStatusPBImpl
-
Constructor Summary
ConstructorsConstructorDescriptionNodeHealthStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the diagnostic health report of the node.booleanIs the node healthy?longGet the last timestamp at which the health report was received.org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProtogetProto()inthashCode()voidsetHealthReport(String healthReport) voidsetIsNodeHealthy(boolean isNodeHealthy) voidsetLastHealthReportTime(long lastHealthReport) toString()Methods inherited from class org.apache.hadoop.yarn.server.api.records.NodeHealthStatus
newInstance
-
Constructor Details
-
NodeHealthStatusPBImpl
public NodeHealthStatusPBImpl() -
NodeHealthStatusPBImpl
public NodeHealthStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeHealthStatusProto getProto() -
hashCode
public int hashCode() -
equals
-
toString
-
getIsNodeHealthy
public boolean getIsNodeHealthy()Description copied from class:NodeHealthStatusIs the node healthy?- Specified by:
getIsNodeHealthyin classNodeHealthStatus- Returns:
trueif the node is healthy, elsefalse
-
setIsNodeHealthy
public void setIsNodeHealthy(boolean isNodeHealthy) - Specified by:
setIsNodeHealthyin classNodeHealthStatus
-
getHealthReport
Description copied from class:NodeHealthStatusGet the diagnostic health report of the node.- Specified by:
getHealthReportin classNodeHealthStatus- Returns:
- diagnostic health report of the node
-
setHealthReport
- Specified by:
setHealthReportin classNodeHealthStatus
-
getLastHealthReportTime
public long getLastHealthReportTime()Description copied from class:NodeHealthStatusGet the last timestamp at which the health report was received.- Specified by:
getLastHealthReportTimein classNodeHealthStatus- Returns:
- last timestamp at which the health report was received
-
setLastHealthReportTime
public void setLastHealthReportTime(long lastHealthReport) - Specified by:
setLastHealthReportTimein classNodeHealthStatus
-