| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final String | |
| private boolean | |
| private boolean | |
| private final Map | upToDateFastCheck
Performs check of the historyService to determine if there is no unrun changesets without obtaining an exclusive write lock. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | cleanUp(CommandResultsBuilder
builder used in this pipeline resultsBuilder)Implements liquibase. Method invoked to execute the cleanup action. |
| protected void | |
| private ChangeExecListener | |
| public abstract String | |
| public abstract String[] | |
| public abstract String | |
| private String | Returns: the formatted command namethe command name to reformat commandName)Given a camel case command name array, format into a user-friendly command name string. |
| public abstract String | |
| public abstract UpdateSummaryEnum | |
| public UpdateSummaryOutputEnum | |
| public ChangeLogIterator | getStandardChangelogIterator(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog)
|
| protected List | getStandardChangelogIteratorFilters(Database database, Contexts contexts, LabelExpression labelExpression)
|
| public ChangeLogIterator | getStatusChangelogIterator(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog)
|
| private StatusVisitor | getStatusVisitor(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog)
|
| public boolean | Returns: true if there are no additional changes to execute, otherwise falsethe database to check database, DatabaseChangeLog the databaseChangeLog of the database databaseChangeLog, Contexts the command contexts contexts, LabelExpression the command label expressions labelExpression, OutputStream the current global OutputStream outputStream)Checks if the database is up-to-date. |
| public boolean | isUpToDateFastCheck(CommandScope commandScope, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression)
|
| private List | Returns: a list of ChangeSet that have not been appliedthe target database database, DatabaseChangeLog the database changelog databaseChangeLog, Contexts the command contexts contexts, LabelExpression the command label expressions labels)Get list of ChangeSet which have not been applied |
| private void | logDeploymentOutcomeMdc(ChangeExecListener defaultListener, boolean success, UpdateReportParameters updateReportParameters)
|
| public void | |
| protected void | preRun(CommandScope commandScope, ChangeLogIterator runChangeLogIterator, ChangeLogParameters changeLogParameters)
Executed before running any updates against the database. |
| public List | requiredDependencies()
Overrides liquibase. Implements liquibase. Return a list of configured Classes that this command requires to be passed as a dependency. |
| public void | run(CommandResultsBuilder resultsBuilder)
Implements liquibase. Performs the business logic. |
| protected void | |
| public void |
| DATABASE_UP_TO_DATE_MESSAGE | back to summary |
|---|---|
| private static final String DATABASE_UP_TO_DATE_MESSAGE | |
| DEFAULT_CHANGE_EXEC_LISTENER_RESULT_KEY | back to summary |
|---|---|
| public static final String DEFAULT_CHANGE_EXEC_LISTENER_RESULT_KEY | |
| isDBLocked | back to summary |
|---|---|
| private boolean isDBLocked | |
| isFastCheckEnabled | back to summary |
|---|---|
| private boolean isFastCheckEnabled | |
| upToDateFastCheck | back to summary |
|---|---|
| private final Map<String, Boolean> upToDateFastCheck Performs check of the historyService to determine if there is no unrun changesets without obtaining an exclusive write lock. This allows multiple peer services to boot in parallel in the common case where there are no changelogs to run. If we see that there is nothing in the changelog to run and this returns true, then regardless of the lock status we already know we are "done" and can finish up without waiting for the lock. But, if there are changelogs that might have to be ran and this returns false, you MUST get a lock and do a real check to know what changesets actually need to run. Note to reduce the number of queries to the databasehistory table, this method will cache the "fast check" results within this instance under the assumption that the total changesets will not change within this instance. | |
| AbstractUpdateCommandStep | back to summary |
|---|---|
| public AbstractUpdateCommandStep() | |
| addChangelogFileToMdc | back to summary |
|---|---|
| private void addChangelogFileToMdc(String changeLogFile, DatabaseChangeLog databaseChangeLog) | |
| cleanUp | back to summary |
|---|---|
| public void cleanUp(CommandResultsBuilder resultsBuilder) Implements liquibase. Doc from liquibase. Method invoked to execute the cleanup action.
| |
| customMdcLogging | back to summary |
|---|---|
| protected void customMdcLogging(CommandScope commandScope) | |
| getChangeExecListener | back to summary |
|---|---|
| private ChangeExecListener getChangeExecListener(CommandResultsBuilder resultsBuilder, CommandScope commandScope) | |
| getChangelogFileArg | back to summary |
|---|---|
| public abstract String getChangelogFileArg(CommandScope commandScope) | |
| getCommandName | back to summary |
|---|---|
| public abstract String[] getCommandName() | |
| getContextsArg | back to summary |
|---|---|
| public abstract String getContextsArg(CommandScope commandScope) | |
| getFormattedCommandName | back to summary |
|---|---|
| private String getFormattedCommandName(String[] commandName) Given a camel case command name array, format into a user-friendly command name string. Ex: Given {"updateToTag"}, produces "Update To Tag" | |
| getLabelFilterArg | back to summary |
|---|---|
| public abstract String getLabelFilterArg(CommandScope commandScope) | |
| getShowSummary | back to summary |
|---|---|
| public abstract UpdateSummaryEnum getShowSummary(CommandScope commandScope) | |
| getShowSummaryOutput | back to summary |
|---|---|
| public UpdateSummaryOutputEnum getShowSummaryOutput(CommandScope commandScope) | |
| getStandardChangelogIterator | back to summary |
|---|---|
public ChangeLogIterator getStandardChangelogIterator(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) throws LiquibaseException
| |
| getStandardChangelogIteratorFilters | back to summary |
|---|---|
| protected List | |
| getStatusChangelogIterator | back to summary |
|---|---|
public ChangeLogIterator getStatusChangelogIterator(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) throws LiquibaseException
| |
| getStatusVisitor | back to summary |
|---|---|
| private StatusVisitor getStatusVisitor(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog) throws LiquibaseException | |
| isUpToDate | back to summary |
|---|---|
| public boolean isUpToDate(CommandScope commandScope, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression, OutputStream outputStream) throws LiquibaseException, IOException Checks if the database is up-to-date.
| |
| isUpToDateFastCheck | back to summary |
|---|---|
| public boolean isUpToDateFastCheck(CommandScope commandScope, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException | |
| listUnrunChangeSets | back to summary |
|---|---|
| private List Get list of ChangeSet which have not been applied
| |
| logDeploymentOutcomeMdc | back to summary |
|---|---|
| private void logDeploymentOutcomeMdc(ChangeExecListener defaultListener, boolean success, UpdateReportParameters updateReportParameters) | |
| postUpdateLog | back to summary |
|---|---|
| public void postUpdateLog(int rowsAffected) Log
| |
| preRun | back to summary |
|---|---|
| protected void preRun(CommandScope commandScope, ChangeLogIterator runChangeLogIterator, ChangeLogParameters changeLogParameters) throws LiquibaseException Executed before running any updates against the database. | |
| requiredDependencies | back to summary |
|---|---|
| public List Overrides liquibase. Implements liquibase. Doc from liquibase. Return a list of configured Classes that this command requires to be passed as a dependency. | |
| run | back to summary |
|---|---|
| public void run(CommandResultsBuilder resultsBuilder) throws Exception Implements liquibase. Doc from liquibase. Performs the business logic.
This method should not be called directly. It is called by the overall pipeline logic in the
| |
| setDBLock | back to summary |
|---|---|
| protected void setDBLock(boolean locked) | |
| setFastCheckEnabled | back to summary |
|---|---|
| public void setFastCheckEnabled(boolean fastCheckEnabled) | |