public class DefaultHealthCheckExecutor extends Object implements HealthCheckExecutor
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.Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultHealthCheckExecutor.PrerequisiteNotInPhaseException |
Constructor and Description |
---|
DefaultHealthCheckExecutor() |
Modifier and Type | Method and Description |
---|---|
Set<HealthCheckResult> |
performHealthChecks(Collection<HealthCheck> healthChecks,
LifecyclePhase lifecyclePhase)
Executes given health checks for the given phase of the Confluence lifecycle.
|
public Set<HealthCheckResult> performHealthChecks(Collection<HealthCheck> healthChecks, LifecyclePhase lifecyclePhase)
HealthCheckExecutor
performHealthChecks
in interface HealthCheckExecutor
healthChecks
- health checks to runlifecyclePhase
- the current phase of the Confluence lifecycleCopyright © 2003–2020 Atlassian. All rights reserved.