Package com.atlassian.jira.health
Class MySQLHealthCheckTemplate
java.lang.Object
com.atlassian.jira.health.AbstractHealthCheck
com.atlassian.jira.health.HealthCheckTemplate
com.atlassian.jira.health.MySQLHealthCheckTemplate
- All Implemented Interfaces:
HealthCheck
- Direct Known Subclasses:
MySql8ModeHealthCheck
@ParametersAreNonnullByDefault
public abstract class MySQLHealthCheckTemplate
extends HealthCheckTemplate
Simplies the implementation of
HealthChecks. Subclasses using MySQL should
override one or more of the phase-specific onXxx methods
and each abstrat methods.- Since:
- 8.12
-
Field Summary
FieldsFields inherited from interface com.atlassian.jira.health.HealthCheck
BLOCKING_START, CAUSE_KEY, CHECK_ID_KEY, DISMISSIBLE, EVENT_ID_KEY, HELP_URL_KEY, INTERACTIVE_JOHNSON, JOHNSON_UI_VERSION, TEMPLATE_CONTEXT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMySQLHealthCheckTemplate(Iterable<HealthCheck> prerequisites, DatabaseConfigurationManager databaseConfigurationManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected HealthCheckMessageFormatterprotected List<HealthCheckResult>createHealthCheckResult(HealthCheckMessageFormatter messageFormatter) protected HealthCheckMessageFormatterprotected Set<LifecyclePhase>protected abstract Predicate<Connection>protected abstract DatabaseTypeprotected abstract Predicate<Connection>booleanisApplicableDatabaseType(DatabaseConfigurationManager configurationManager) protected List<HealthCheckResult>verify(DatabaseConfigurationManager configurationManager) Methods inherited from class com.atlassian.jira.health.HealthCheckTemplate
isApplicableFor, performMethods inherited from class com.atlassian.jira.health.AbstractHealthCheck
getPrerequisitesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.health.HealthCheck
getId
-
Field Details
-
manager
-
-
Constructor Details
-
MySQLHealthCheckTemplate
protected MySQLHealthCheckTemplate(Iterable<HealthCheck> prerequisites, DatabaseConfigurationManager databaseConfigurationManager)
-
-
Method Details
-
getApplicablePhases
- Specified by:
getApplicablePhasesin classHealthCheckTemplate
-
doPerform
- Specified by:
doPerformin classHealthCheckTemplate
-
isApplicableDatabaseType
-
getDatabaseType
-
verify
-
getVersionPredicate
-
getConfigurationCheckerPredicate
-
createHealthCheckResult
protected List<HealthCheckResult> createHealthCheckResult(HealthCheckMessageFormatter messageFormatter) -
createErrorMessage
-
createServerConfigErrorMessage
-