@ParametersAreNonnullByDefault public abstract class MySQLHealthCheckTemplate extends HealthCheckTemplate
HealthCheck
s. Subclasses using MySQL should
override one or more of the phase-specific onXxx
methods
and each abstrat methods.Modifier and Type | Field and Description |
---|---|
protected DatabaseConfigurationManager |
manager |
CAUSE_KEY, CHECK_ID_KEY, DISMISSIBLE, EVENT_ID_KEY, HELP_URL_KEY, INTERACTIVE_JOHNSON, JOHNSON_UI_VERSION, TEMPLATE_CONTEXT
Modifier | Constructor and Description |
---|---|
protected |
MySQLHealthCheckTemplate(Iterable<HealthCheck> prerequisites,
DatabaseConfigurationManager databaseConfigurationManager) |
Modifier and Type | Method and Description |
---|---|
protected HealthCheckMessageFormatter |
createErrorMessage() |
protected List<HealthCheckResult> |
createHealthCheckResult(HealthCheckMessageFormatter messageFormatter) |
protected HealthCheckMessageFormatter |
createServerConfigErrorMessage() |
List<HealthCheckResult> |
doPerform() |
protected Set<LifecyclePhase> |
getApplicablePhases() |
protected abstract java.util.function.Predicate<Connection> |
getConfigurationCheckerPredicate() |
protected abstract DatabaseType |
getDatabaseType() |
protected abstract java.util.function.Predicate<Connection> |
getVersionPredicate() |
boolean |
isApplicableDatabaseType(DatabaseConfigurationManager configurationManager) |
protected List<HealthCheckResult> |
verify(DatabaseConfigurationManager configurationManager) |
isApplicableFor, perform
getPrerequisites
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected final DatabaseConfigurationManager manager
protected MySQLHealthCheckTemplate(Iterable<HealthCheck> prerequisites, DatabaseConfigurationManager databaseConfigurationManager)
protected Set<LifecyclePhase> getApplicablePhases()
getApplicablePhases
in class HealthCheckTemplate
public List<HealthCheckResult> doPerform()
doPerform
in class HealthCheckTemplate
public boolean isApplicableDatabaseType(DatabaseConfigurationManager configurationManager)
protected abstract DatabaseType getDatabaseType()
protected List<HealthCheckResult> verify(DatabaseConfigurationManager configurationManager)
protected abstract java.util.function.Predicate<Connection> getVersionPredicate()
protected abstract java.util.function.Predicate<Connection> getConfigurationCheckerPredicate()
protected List<HealthCheckResult> createHealthCheckResult(HealthCheckMessageFormatter messageFormatter)
protected HealthCheckMessageFormatter createErrorMessage()
protected HealthCheckMessageFormatter createServerConfigErrorMessage()
Copyright © 2002-2022 Atlassian. All Rights Reserved.