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

public abstract class HealthCheckTemplate extends AbstractHealthCheck
Simplies the implementation of HealthChecks.
Since:
6.6.0
  • Constructor Details

  • Method Details

    • perform

      public final List<HealthCheckResult> perform(LifecyclePhase phase)
      Description copied from interface: HealthCheck
      Performs health check for given phase.

      If the health check passes, an empty list will be returned.

      Returns:
      a collection of HealthCheckResult
    • isApplicableFor

      public final boolean isApplicableFor(LifecyclePhase phase)
      Description copied from interface: HealthCheck
      Checks if current HealthCheck is applicable for given phase
      Returns:
      true if HealthCheck is applicable for the phase
    • getApplicablePhases

      protected abstract Set<LifecyclePhase> getApplicablePhases()
      Subclasses should indicate the phases in which this check should run.
      Returns:
      the applicable phases
    • doPerform

      protected abstract List<HealthCheckResult> 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: