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
ConstructorsModifierConstructorDescriptionprotectedAbstractHealthCheckRule(ErrorMessageProvider errorMessageProvider, URI kbUrl, String failureCause, JohnsonEventType johnsonEventType) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetErrorMessage(String key, Object... args) protected com.atlassian.johnson.event.EventgetFailureEvent(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:HealthCheckRuleChecks whether the Health Check rule is satisfied.- Specified by:
validatein 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
-