HealthReporterpublic class ExceptionReporter extends java.lang.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 | Description |
|---|---|---|
java.lang.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(java.lang.Exception ex) |
Report an exception to mark the node as unhealthy.
|
public boolean isHealthy()
HealthReporterisHealthy in interface HealthReporterpublic java.lang.String getHealthReport()
HealthReportergetHealthReport in interface HealthReporterpublic long getLastHealthReportTime()
HealthReportergetLastHealthReportTime in interface HealthReporterpublic void reportException(java.lang.Exception ex)
ex - the exception that makes the node unhealthyCopyright © 2008–2025 Apache Software Foundation. All rights reserved.