public class DefaultHealthCheckRunner extends Object implements HealthCheckRunner
Constructor and Description |
---|
DefaultHealthCheckRunner(HealthCheckExecutor healthCheckExecutor,
HealthCheckRegistry healthCheckRegistry,
com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer,
com.atlassian.util.concurrent.Supplier<HealthCheckAnalyticsSender> healthCheckAnalyticsSenderSupplier,
UpgradeEventRegistry upgradeEventRegistry,
com.atlassian.config.ApplicationConfiguration applicationConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete()
Indicates whether all possible health checks have been run, across all
LifecyclePhase s. |
void |
runHealthChecks(LifecyclePhase lifecyclePhase)
Runs the
HealthCheck s in the given LifecyclePhase . |
public DefaultHealthCheckRunner(HealthCheckExecutor healthCheckExecutor, HealthCheckRegistry healthCheckRegistry, com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer, com.atlassian.util.concurrent.Supplier<HealthCheckAnalyticsSender> healthCheckAnalyticsSenderSupplier, UpgradeEventRegistry upgradeEventRegistry, com.atlassian.config.ApplicationConfiguration applicationConfiguration)
public boolean isComplete()
HealthCheckRunner
LifecyclePhase
s.isComplete
in interface HealthCheckRunner
false
if this is not the last phase or the current phase has some checks left to runLifecyclePhase.isLast()
public void runHealthChecks(LifecyclePhase lifecyclePhase)
HealthCheckRunner
HealthCheck
s in the given LifecyclePhase
.runHealthChecks
in interface HealthCheckRunner
lifecyclePhase
- the lifecycle phaseCopyright © 2003–2021 Atlassian. All rights reserved.