Class DefaultHealthCheckExecutor
java.lang.Object
com.atlassian.confluence.impl.health.DefaultHealthCheckExecutor
- All Implemented Interfaces:
HealthCheckExecutor
The
HealthCheckExecutor
implementation. It should have no side-effects
such as adding events to Johnson or logging health check results.
Given that the product's LifecyclePhase
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 ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperformHealthChecks
(Collection<HealthCheck> healthChecks, LifecyclePhase lifecyclePhase) Executes given health checks for the given phase of the Confluence lifecycle.
-
Constructor Details
-
DefaultHealthCheckExecutor
public DefaultHealthCheckExecutor()
-
-
Method Details
-
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)
-