Interface HealthReporter

All Known Implementing Classes:
ExceptionReporter, LocalDirsHandlerService, NodeHealthCheckerService, NodeHealthScriptRunner, TimedHealthReporterService

public interface HealthReporter
Interface providing information about the health of a service. Associated pieces of information: Classes implementing this interface are used in NodeHealthCheckerService. Developers are discouraged to implement new Java-based health scripts, they should rather try to implement it as a script and use the NodeHealthScriptRunner implementation.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns output from health check.
    long
    Returns time stamp when node health check was last run.
    boolean
    Gets whether the node is healthy or not.
  • Method Details

    • isHealthy

      boolean isHealthy()
      Gets whether the node is healthy or not.
      Returns:
      true if node is healthy
    • getHealthReport

      String getHealthReport()
      Returns output from health check. If node is healthy then an empty string is returned.
      Returns:
      output from health check
    • getLastHealthReportTime

      long getLastHealthReportTime()
      Returns time stamp when node health check was last run.
      Returns:
      timestamp when node health script was last run