Package lumis.portal.healthmonitor
Class HealthMonitorManager
- java.lang.Object
-
- lumis.portal.healthmonitor.HealthMonitorManager
-
- All Implemented Interfaces:
IHealthMonitorManager
public class HealthMonitorManager extends Object implements IHealthMonitorManager
Implements theIHealthMonitorManager
interface.- Since:
- 10.1.0
- Version:
- $Revision: 21389 $ $Date: 2018-06-18 16:03:57 -0300 (Mon, 18 Jun 2018) $
-
-
Constructor Summary
Constructors Constructor Description HealthMonitorManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HealthCheckInfo>
getHealthChecks()
Returns a list of all available health checks.Map<String,Map<String,HealthCheckResult>>
runCompleteHealthCheck(HttpServletRequest request)
Executes all health checksHealthCheckResult
runHealthCheck(String className, String methodName, HttpServletRequest request)
Executes a single health check for the given class and method.Map<String,HealthCheckResult>
runHealthCheck(String className, HttpServletRequest request)
Executes all health checks available in a class.
-
-
-
Method Detail
-
getHealthChecks
public List<HealthCheckInfo> getHealthChecks() throws Exception
Description copied from interface:IHealthMonitorManager
Returns a list of all available health checks.- Specified by:
getHealthChecks
in interfaceIHealthMonitorManager
- Returns:
- a list of health checks.
- Throws:
Exception
-
runCompleteHealthCheck
public Map<String,Map<String,HealthCheckResult>> runCompleteHealthCheck(HttpServletRequest request) throws Exception
Description copied from interface:IHealthMonitorManager
Executes all health checks- Specified by:
runCompleteHealthCheck
in interfaceIHealthMonitorManager
- Returns:
- a map of results grouped by class name
- Throws:
Exception
-
runHealthCheck
public Map<String,HealthCheckResult> runHealthCheck(String className, HttpServletRequest request) throws Exception
Description copied from interface:IHealthMonitorManager
Executes all health checks available in a class.- Specified by:
runHealthCheck
in interfaceIHealthMonitorManager
- Parameters:
className
- the class to execute- Returns:
- a list of results for each method with the HealthCheck annotation
- Throws:
Exception
-
runHealthCheck
public HealthCheckResult runHealthCheck(String className, String methodName, HttpServletRequest request) throws Exception
Description copied from interface:IHealthMonitorManager
Executes a single health check for the given class and method.- Specified by:
runHealthCheck
in interfaceIHealthMonitorManager
- Parameters:
className
- the name of the class for which the check should be runmethodName
- the name of the method for which the check should be runrequest
- a http request for which some check can use to- Returns:
- the check result
- Throws:
Exception
-
-