public interface HealthCheck
perform(LifecyclePhase)
method.Modifier and Type | Method and Description |
---|---|
default String |
getId()
Returns the unique ID of this check.
|
@NonNull 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
|
@NonNull 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)
If the health check passes, an empty list will be returned.
HealthCheckResult
UnsupportedOperationException
- if not applicable phase is providedboolean isApplicableFor(LifecyclePhase phase)
Copyright © 2003–2020 Atlassian. All rights reserved.