Class PublicSchemaHealthCheck
java.lang.Object
com.atlassian.jira.health.AbstractHealthCheck
com.atlassian.jira.health.HealthCheckTemplate
com.atlassian.jira.health.checks.database.PublicSchemaHealthCheck
- All Implemented Interfaces:
HealthCheck
A HealthCheck that looks in the entityengine.xml for a specific
misconfiguration, the combination of setting schema-name to PUBLIC
(upper case) on a database other than H2 or HSQL.
The check can be disabled by setting the system property "atlassian.jira.dbcheck.publicschemaconfig.disabled" to true.
- Since:
- 7.4
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<HealthCheckResult>protected Set<LifecyclePhase>performCheck(org.ofbiz.core.entity.config.DatasourceInfo datasourceInfo) Run this check with a particular DatasourceInfo instance.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
-
Constructor Details
-
PublicSchemaHealthCheck
-
-
Method Details
-
getApplicablePhases
- Specified by:
getApplicablePhasesin classHealthCheckTemplate
-
doPerform
- Specified by:
doPerformin classHealthCheckTemplate
-
performCheck
public List<HealthCheckResult> performCheck(org.ofbiz.core.entity.config.DatasourceInfo datasourceInfo) Run this check with a particular DatasourceInfo instance. This is used as a HealthCheck on startup, and a test when configuring a new connection.- Parameters:
datasourceInfo- the data source to check- Returns:
- a HealthCheckResult if the check fails, otherwise Optional.empty()
-