private String getHealthReport(HealthCheckerExitStatus status) {
    String healthReport = null;
    switch (status) {
      case SUCCESS:
        healthReport = "Server is healthy.";
        break;
      case TIMED_OUT:
        healthReport = "Health script timed out";
        break;
      case FAILED_WITH_EXCEPTION:
        healthReport = exceptionStackTrace;
        break;
      case FAILED_WITH_EXIT_CODE:
        healthReport = "Health script failed with exit code.";
        break;
      case FAILED:
        healthReport = shexec.getOutput();
        break;
    }
    return healthReport;
  }
Initialize.
@param location the location of the health script
@param timeout  the timeout to be used for the health script
hbase-server/src/main/java/org/apache/hadoop/hbase/HealthChecker.java