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()
HealthReporter
isHealthy
in interface HealthReporter
public String getHealthReport()
HealthReporter
getHealthReport
in interface HealthReporter
public long getLastHealthReportTime()
HealthReporter
getLastHealthReportTime
in interface HealthReporter
public void reportException(Exception ex)
ex
- the exception that makes the node unhealthyCopyright © 2008–2023 Apache Software Foundation. All rights reserved.