Class PostgresSchemaHealthCheck
java.lang.Object
com.atlassian.jira.health.AbstractHealthCheck
com.atlassian.jira.health.HealthCheckTemplate
com.atlassian.jira.health.checks.database.PostgresSchemaHealthCheck
- All Implemented Interfaces:
HealthCheck
A checker that will print a log message if the database is Postgres and the schema name contains upper case.
see JRA-16780.
- Since:
- v7.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 dsi) Check that the schema used by this DatasourceInfo is legal if it is PostgresMethods 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
-
PostgresSchemaHealthCheck
-
-
Method Details
-
getApplicablePhases
- Specified by:
getApplicablePhasesin classHealthCheckTemplate
-
doPerform
- Specified by:
doPerformin classHealthCheckTemplate
-
performCheck
Check that the schema used by this DatasourceInfo is legal if it is Postgres- Parameters:
dsi- the DatasorceInfo to check- Returns:
- an Optional containing a HealthCheckResult if there was a problem, otherwise Optional.none()
-