Class ExceptionReporter
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.health.ExceptionReporter
- All Implemented Interfaces:
HealthReporter
Simple
HealthReporter implementation which reports whether a fatal
exception has happened in the NodeManager.
See the reportException call of
NodeStatusUpdaterImpl-
Method Summary
Modifier and TypeMethodDescriptionReturns output from health check.longReturns time stamp when node health check was last run.booleanGets whether the node is healthy or not.voidReport an exception to mark the node as unhealthy.
-
Method Details
-
isHealthy
public boolean isHealthy()Description copied from interface:HealthReporterGets whether the node is healthy or not.- Specified by:
isHealthyin interfaceHealthReporter- Returns:
- true if node is healthy
-
getHealthReport
Description copied from interface:HealthReporterReturns output from health check. If node is healthy then an empty string is returned.- Specified by:
getHealthReportin interfaceHealthReporter- Returns:
- output from health check
-
getLastHealthReportTime
public long getLastHealthReportTime()Description copied from interface:HealthReporterReturns time stamp when node health check was last run.- Specified by:
getLastHealthReportTimein interfaceHealthReporter- Returns:
- timestamp when node health script was last run
-
reportException
Report an exception to mark the node as unhealthy.- Parameters:
ex- the exception that makes the node unhealthy
-