Class FakeHealthCheck
java.lang.Object
com.atlassian.confluence.impl.health.AbstractHealthCheck
com.atlassian.confluence.impl.health.checks.FakeHealthCheck
- All Implemented Interfaces:
HealthCheck
This fake
HealthCheck
allows the operator
to simulate a health check failure, for example to test:
- The Johnson infrastructure (manually or via automation), or
- The "
hide.system.error.details
" flag.
- Since:
- 6.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.johnson.event.EventType
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.Methods inherited from class com.atlassian.confluence.impl.health.AbstractHealthCheck
getPrerequisites
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.internal.health.HealthCheck
getId
-
Constructor Details
-
FakeHealthCheck
public FakeHealthCheck()
-
-
Method Details
-
perform
Description copied from interface:HealthCheck
Performs health check for given phase.If the health check passes, an empty list will be returned.
- Returns:
- a collection of
HealthCheckResult
-
isApplicableFor
Description copied from interface:HealthCheck
Checks if current HealthCheck is applicable for given phase- Returns:
- true if HealthCheck is applicable for the phase
-
getAppropriateErrorTypeForPhase
-