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.
|
getPrerequisitesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic @NonNull List<HealthCheckResult> perform(LifecyclePhase lifecyclePhase)
HealthCheckIf the health check passes, an empty list will be returned.
HealthCheckResultpublic boolean isApplicableFor(LifecyclePhase phase)
HealthCheckpublic com.atlassian.johnson.event.EventType getAppropriateErrorTypeForPhase(LifecyclePhase phase)
Copyright © 2003–2019 Atlassian. All rights reserved.