Class DefaultHealthCheckExecutor
- java.lang.Object
-
- com.atlassian.confluence.impl.health.DefaultHealthCheckExecutor
-
- All Implemented Interfaces:
HealthCheckExecutor
public class DefaultHealthCheckExecutor extends Object implements HealthCheckExecutor
TheHealthCheckExecutor
implementation. It should have no side-effects such as adding events to Johnson or logging health check results. Given that the product'sLifecyclePhase
s are sequential, only one thread should be using this class at a time. It can therefore be a singleton. We synchronize its public method just to be on the safe side; this will not affect performance for the intended use cases.- Since:
- 6.6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DefaultHealthCheckExecutor.PrerequisiteNotInPhaseException
-
Constructor Summary
Constructors Constructor Description DefaultHealthCheckExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<HealthCheckResult>
performHealthChecks(Collection<HealthCheck> healthChecks, LifecyclePhase lifecyclePhase)
Executes given health checks for the given phase of the Confluence lifecycle.
-
-
-
Method Detail
-
performHealthChecks
public Set<HealthCheckResult> performHealthChecks(Collection<HealthCheck> healthChecks, LifecyclePhase lifecyclePhase)
Description copied from interface:HealthCheckExecutor
Executes given health checks for the given phase of the Confluence lifecycle.- Specified by:
performHealthChecks
in interfaceHealthCheckExecutor
- Parameters:
healthChecks
- health checks to runlifecyclePhase
- the current phase of the Confluence lifecycle- Returns:
- any results of the checks (not all checks will return results in all phases)
-
-