public class ExceptionReporter extends Object implements HealthReporter
HealthReporter implementation which reports whether a fatal
 exception has happened in the NodeManager.
 See the reportException call of
 NodeStatusUpdaterImpl| Modifier and Type | Method and Description | 
|---|---|
| String | getHealthReport()Returns output from health check. | 
| long | getLastHealthReportTime()Returns time stamp when node health check was last run. | 
| boolean | isHealthy()Gets whether the node is healthy or not. | 
| void | reportException(Exception ex)Report an exception to mark the node as unhealthy. | 
public boolean isHealthy()
HealthReporterisHealthy in interface HealthReporterpublic String getHealthReport()
HealthReportergetHealthReport in interface HealthReporterpublic long getLastHealthReportTime()
HealthReportergetLastHealthReportTime in interface HealthReporterpublic void reportException(Exception ex)
ex - the exception that makes the node unhealthyCopyright © 2008–2023 Apache Software Foundation. All rights reserved.