public abstract class HealthCheckTemplate extends AbstractHealthCheck
HealthCheck
s.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.
|
getPrerequisites
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected HealthCheckTemplate(Iterable<HealthCheck> prerequisites)
public final List<HealthCheckResult> perform(LifecyclePhase phase)
HealthCheck
If the health check passes, an empty list will be returned.
HealthCheckResult
public final boolean isApplicableFor(LifecyclePhase phase)
HealthCheck
protected abstract Set<LifecyclePhase> getApplicablePhases()
protected abstract List<HealthCheckResult> doPerform()
getApplicablePhases()
,
HealthCheck.perform(LifecyclePhase)
Copyright © 2003–2019 Atlassian. All rights reserved.