Class AbstractHealthCheckRule
java.lang.Object
com.atlassian.confluence.impl.health.checks.rules.AbstractHealthCheckRule
- All Implemented Interfaces:
HealthCheckRule
- Direct Known Subclasses:
AbstractDatabaseCollationRule
,AbstractDatabaseSetupRule
,DataSourceSetupRule
,DbConnectionPoolRule
,HttpThreadsVsDbConnectionPoolRule
,TomcatHttpMaxThreadsRule
Superclass for Health Check Rules.
- Since:
- 6.13
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractHealthCheckRule
(ErrorMessageProvider errorMessageProvider, URI kbUrl, String failureCause, JohnsonEventType johnsonEventType) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getErrorMessage
(String key, Object... args) protected com.atlassian.johnson.event.Event
getFailureEvent
(String errorMessage) validate
(HealthCheck parent) Checks whether the Health Check rule is satisfied.
-
Constructor Details
-
AbstractHealthCheckRule
protected AbstractHealthCheckRule(ErrorMessageProvider errorMessageProvider, URI kbUrl, String failureCause, JohnsonEventType johnsonEventType)
-
-
Method Details
-
validate
Description copied from interface:HealthCheckRule
Checks whether the Health Check rule is satisfied.- Specified by:
validate
in interfaceHealthCheckRule
- Parameters:
parent
- the health check which is validating the rule.- Returns:
- a list of Health Check results or empty if no failures.
-
doValidation
-
getErrorMessage
-
getFailureEvent
-