Class LicenseValidationHealthCheck
- java.lang.Object
-
- com.atlassian.confluence.impl.health.AbstractHealthCheck
-
- com.atlassian.confluence.impl.health.HealthCheckTemplate
-
- com.atlassian.confluence.impl.health.checks.LicenseValidationHealthCheck
-
- All Implemented Interfaces:
HealthCheck
public class LicenseValidationHealthCheck extends HealthCheckTemplate
AHealthCheck
that checks for a valid confluence license.This check should run during the
BOOTSTRAP_END
lifecycle phase and only if setup has completed.- Since:
- 6.10.0
-
-
Constructor Summary
Constructors Constructor Description LicenseValidationHealthCheck(BootstrapManager bootstrapManager, LicenseService licenseService, LicenseValidator licenseValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<HealthCheckResult>
doPerform()
Subclasses should perform their check and return any results arising from it.protected Set<LifecyclePhase>
getApplicablePhases()
Subclasses should indicate the phases in which this check should run.-
Methods inherited from class com.atlassian.confluence.impl.health.HealthCheckTemplate
isApplicableFor, perform
-
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 Detail
-
LicenseValidationHealthCheck
public LicenseValidationHealthCheck(BootstrapManager bootstrapManager, LicenseService licenseService, LicenseValidator licenseValidator)
-
-
Method Detail
-
getApplicablePhases
protected Set<LifecyclePhase> getApplicablePhases()
Description copied from class:HealthCheckTemplate
Subclasses should indicate the phases in which this check should run.- Specified by:
getApplicablePhases
in classHealthCheckTemplate
- Returns:
- the applicable phases
-
doPerform
protected List<HealthCheckResult> doPerform()
Description copied from class:HealthCheckTemplate
Subclasses should perform their check and return any results arising from it. This method will only be called in a phase to which this check applies.- Specified by:
doPerform
in classHealthCheckTemplate
- Returns:
- any results arising from this check
- See Also:
HealthCheckTemplate.getApplicablePhases()
,HealthCheck.perform(LifecyclePhase)
-
-