Class DbConnectionHealthCheck
java.lang.Object
com.atlassian.confluence.impl.health.AbstractHealthCheck
com.atlassian.confluence.impl.health.HealthCheckTemplate
com.atlassian.confluence.impl.health.checks.DbConnectionHealthCheck
- All Implemented Interfaces:
HealthCheck
Checks whether Confluence can connect to the database.
- Since:
- 6.11
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DbConnectionHealthCheck
(SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig, DbHealthCheckHelper dbHealthCheckHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<HealthCheckResult>
Subclasses should perform their check and return any results arising from it.protected Set<LifecyclePhase>
Subclasses should indicate the phases in which this check should run.Methods inherited from class com.atlassian.confluence.impl.health.HealthCheckTemplate
isApplicableFor, perform
Methods inherited from class com.atlassian.confluence.impl.health.AbstractHealthCheck
getPrerequisites
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.internal.health.HealthCheck
getId
-
Constructor Details
-
DbConnectionHealthCheck
protected DbConnectionHealthCheck(SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig, DbHealthCheckHelper dbHealthCheckHelper)
-
-
Method Details
-
getApplicablePhases
Description copied from class:HealthCheckTemplate
Subclasses should indicate the phases in which this check should run.- Specified by:
getApplicablePhases
in classHealthCheckTemplate
- Returns:
- the applicable phases
-
doPerform
Description copied from class:HealthCheckTemplate
Subclasses should perform their check and return any results arising from it. This method will only be called in a phase to which this check applies.- Specified by:
doPerform
in classHealthCheckTemplate
- Returns:
- any results arising from this check
- See Also:
-