public interface HealthCheck
perform(LifecyclePhase)
method.Modifier and Type | Method and Description |
---|---|
default String |
getId()
Returns the unique ID of this check.
|
Collection<HealthCheck> |
getPrerequisites()
Returns the checks that must have a non-
EventLevel.FATAL
result before this check can be 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
|
default String getId()
@Nonnull Collection<HealthCheck> getPrerequisites()
EventLevel.FATAL
result before this check can be run.@Nonnull List<HealthCheckResult> perform(LifecyclePhase phase)
HealthCheckResult
UnsupportedOperationException
- if not applicable phase is providedboolean isApplicableFor(LifecyclePhase phase)
Copyright © 2003–2017 Atlassian. All rights reserved.