Class HealthMonitorManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<HealthCheckInfo> getHealthChecks()
      Returns a list of all available health checks.
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​HealthCheckResult>> runCompleteHealthCheck​(javax.servlet.http.HttpServletRequest request)
      Executes all health checks
      HealthCheckResult runHealthCheck​(java.lang.String className, java.lang.String methodName, javax.servlet.http.HttpServletRequest request)
      Executes a single health check for the given class and method.
      java.util.Map<java.lang.String,​HealthCheckResult> runHealthCheck​(java.lang.String className, javax.servlet.http.HttpServletRequest request)
      Executes all health checks available in a class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HealthMonitorManager

        public HealthMonitorManager()
    • Method Detail

      • runCompleteHealthCheck

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​HealthCheckResult>> runCompleteHealthCheck​(javax.servlet.http.HttpServletRequest request)
                                                                                                                             throws java.lang.Exception
        Description copied from interface: IHealthMonitorManager
        Executes all health checks
        Specified by:
        runCompleteHealthCheck in interface IHealthMonitorManager
        Returns:
        a map of results grouped by class name
        Throws:
        java.lang.Exception
      • runHealthCheck

        public java.util.Map<java.lang.String,​HealthCheckResult> runHealthCheck​(java.lang.String className,
                                                                                      javax.servlet.http.HttpServletRequest request)
                                                                               throws java.lang.Exception
        Description copied from interface: IHealthMonitorManager
        Executes all health checks available in a class.
        Specified by:
        runHealthCheck in interface IHealthMonitorManager
        Parameters:
        className - the class to execute
        Returns:
        a list of results for each method with the HealthCheck annotation
        Throws:
        java.lang.Exception
      • runHealthCheck

        public HealthCheckResult runHealthCheck​(java.lang.String className,
                                                java.lang.String methodName,
                                                javax.servlet.http.HttpServletRequest request)
                                         throws java.lang.Exception
        Description copied from interface: IHealthMonitorManager
        Executes a single health check for the given class and method.
        Specified by:
        runHealthCheck in interface IHealthMonitorManager
        Parameters:
        className - the name of the class for which the check should be run
        methodName - the name of the method for which the check should be run
        request - a http request for which some check can use to
        Returns:
        the check result
        Throws:
        java.lang.Exception