public class DefaultHealthCheckRunner extends Object implements HealthCheckRunner
Constructor and Description |
---|
DefaultHealthCheckRunner(HealthCheckAnalyticsSender healthCheckAnalyticsSender,
HealthCheckExecutor healthCheckExecutor,
HealthCheckRegistrar healthCheckRegistrar,
HealthCheckRegistry healthCheckRegistry,
com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer) |
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete()
Indicates whether all possible health checks have been run, across all
LifecyclePhase s. |
void |
registerHealthChecks() |
void |
runHealthChecks(LifecyclePhase lifecyclePhase)
Runs the
HealthCheck s in the given LifecyclePhase . |
public DefaultHealthCheckRunner(HealthCheckAnalyticsSender healthCheckAnalyticsSender, HealthCheckExecutor healthCheckExecutor, HealthCheckRegistrar healthCheckRegistrar, HealthCheckRegistry healthCheckRegistry, com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer)
@PostConstruct public void registerHealthChecks()
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–2017 Atlassian. All rights reserved.