Class HealthCheckTemplate
java.lang.Object
com.atlassian.confluence.impl.health.AbstractHealthCheck
com.atlassian.confluence.impl.health.HealthCheckTemplate
- All Implemented Interfaces:
HealthCheck
- Direct Known Subclasses:
AttachmentDataFileStoreCheck,DatabaseCollationHealthCheck,DatabaseSetupHealthCheck,DbConnectionHealthCheck,HomeHealthCheck,HttpThreadsVsDbConnectionsHealthCheck,LicenseValidationHealthCheck,MSSQLDriverMigrationHealthCheck,MySqlJdbcUrlHealthCheck,OperatingSystemFreeMemoryHealthCheck
Simplies the implementation of
HealthChecks.- Since:
- 6.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<HealthCheckResult> Subclasses should perform their check and return any results arising from it.protected abstract Set<LifecyclePhase> Subclasses should indicate the phases in which this check should run.final booleanisApplicableFor(LifecyclePhase phase) Checks if current HealthCheck is applicable for given phasefinal List<HealthCheckResult> perform(LifecyclePhase phase) Performs health check for given phase.Methods inherited from class com.atlassian.confluence.impl.health.AbstractHealthCheck
getPrerequisitesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.internal.health.HealthCheck
getId
-
Constructor Details
-
HealthCheckTemplate
-
-
Method Details
-
perform
Description copied from interface:HealthCheckPerforms health check for given phase.If the health check passes, an empty list will be returned.
- Returns:
- a collection of
HealthCheckResult
-
isApplicableFor
Description copied from interface:HealthCheckChecks if current HealthCheck is applicable for given phase- Returns:
- true if HealthCheck is applicable for the phase
-
getApplicablePhases
Subclasses should indicate the phases in which this check should run.- Returns:
- the applicable phases
-
doPerform
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.- Returns:
- any results arising from this check
- See Also:
-