Class FakeHealthCheck
- java.lang.Object
-
- com.atlassian.confluence.impl.health.AbstractHealthCheck
-
- com.atlassian.confluence.impl.health.checks.FakeHealthCheck
-
- All Implemented Interfaces:
HealthCheck
public class FakeHealthCheck extends AbstractHealthCheck
This fakeHealthCheck
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 Constructor Description FakeHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
-
-
-
-
Method Detail
-
perform
public @NonNull List<HealthCheckResult> perform(LifecyclePhase lifecyclePhase)
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
public boolean isApplicableFor(LifecyclePhase phase)
Description copied from interface:HealthCheck
Checks if current HealthCheck is applicable for given phase- Returns:
- true if HealthCheck is applicable for the phase
-
getAppropriateErrorTypeForPhase
public com.atlassian.johnson.event.EventType getAppropriateErrorTypeForPhase(LifecyclePhase phase)
-
-