Package lumis.portal.healthmonitor
Class HealthCheckResult
- java.lang.Object
-
- lumis.portal.healthmonitor.HealthCheckResult
-
public class HealthCheckResult extends java.lang.Object
A Health Check should return this object in a HealthCheckException if the check result is not OK.- Since:
- 10.1.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthCheckResult.ResultType
-
Constructor Summary
Constructors Constructor Description HealthCheckResult(HealthCheckResult.ResultType result)
HealthCheckResult(HealthCheckResult.ResultType result, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
The message in HTML format that should be shown to the end user.HealthCheckResult.ResultType
getResult()
Returns the health check result.void
setMessage(java.lang.String message)
void
setResult(HealthCheckResult.ResultType result)
-
-
-
Constructor Detail
-
HealthCheckResult
public HealthCheckResult(HealthCheckResult.ResultType result)
-
HealthCheckResult
public HealthCheckResult(HealthCheckResult.ResultType result, java.lang.String message)
-
-
Method Detail
-
getResult
public HealthCheckResult.ResultType getResult()
Returns the health check result.- Returns:
- the result
- Since:
- 10.1.0
-
setResult
public void setResult(HealthCheckResult.ResultType result)
-
getMessage
public java.lang.String getMessage()
The message in HTML format that should be shown to the end user.- Returns:
- Since:
- 10.1.0
-
setMessage
public void setMessage(java.lang.String message)
-
-