public class FakeHealthCheck extends AbstractHealthCheck
HealthCheck
allows the operator
to simulate a health check failure, for example to test:
hide.system.error.details
" flag.Constructor and Description |
---|
FakeHealthCheck() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.johnson.event.EventType |
getAppropriateErrorTypeForPhase(LifecyclePhase phase) |
boolean |
isApplicableFor(LifecyclePhase phase)
Checks if current HealthCheck is applicable for given phase
|
@NonNull List<HealthCheckResult> |
perform(LifecyclePhase lifecyclePhase)
Performs health check for given phase.
|
getPrerequisites
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public @NonNull List<HealthCheckResult> perform(LifecyclePhase lifecyclePhase)
HealthCheck
If the health check passes, an empty list will be returned.
HealthCheckResult
public boolean isApplicableFor(LifecyclePhase phase)
HealthCheck
public com.atlassian.johnson.event.EventType getAppropriateErrorTypeForPhase(LifecyclePhase phase)
Copyright © 2003–2020 Atlassian. All rights reserved.