public abstract class HealthCheckTemplate extends AbstractHealthCheck
HealthChecks.| Modifier | Constructor and Description |
|---|---|
protected |
HealthCheckTemplate(Iterable<HealthCheck> prerequisites) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<HealthCheckResult> |
doPerform()
Subclasses should perform their check and return any results arising from it.
|
protected abstract Set<LifecyclePhase> |
getApplicablePhases()
Subclasses should indicate the phases in which this check should run.
|
boolean |
isApplicableFor(LifecyclePhase phase)
Checks if current HealthCheck is applicable for given phase
|
List<HealthCheckResult> |
perform(LifecyclePhase phase)
Performs health check for given phase.
|
getPrerequisitesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdprotected HealthCheckTemplate(Iterable<HealthCheck> prerequisites)
public final List<HealthCheckResult> perform(LifecyclePhase phase)
HealthCheckIf the health check passes, an empty list will be returned.
HealthCheckResultpublic final boolean isApplicableFor(LifecyclePhase phase)
HealthCheckprotected abstract Set<LifecyclePhase> getApplicablePhases()
protected abstract List<HealthCheckResult> doPerform()
getApplicablePhases(),
HealthCheck.perform(LifecyclePhase)Copyright © 2003–2021 Atlassian. All rights reserved.