java.lang.Object | |
↳ | com.atlassian.confluence.upgrade.AbstractUpgradeManager |
Known Direct Subclasses |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.upgrade.UpgradeManager
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the passed build number is less than the configured build number - that is, the version of
the currently running Confluence is newer than the version passed.
| |||||||||||
Called when all immediate and deferred upgrade actions have been performed *if* an upgrade was needed.
| |||||||||||
Returns true if the build number for the task is greater than the passed build number.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Once all upgrade tasks have been completed without error, make sure the build number stored in the applications main configuration file and database now matches
the build number of this version of the release.
| |||||||||||
This is used to guard against database upgrades being performed multiple times on the same database.
| |||||||||||
Runs all upgrade prerequisites.
| |||||||||||
Once the upgrade is complete, we'll need to set the new database build number in the database.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.upgrade.UpgradeManager
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Returns true if the passed build number is less than the configured build number - that is, the version of the currently running Confluence is newer than the version passed.
Called when all immediate and deferred upgrade actions have been performed *if* an upgrade was needed.
Returns true if the build number for the task is greater than the passed build number. Usually indicates that the task should run as part of an upgrade.
getConfiguredBuildNumber()
.
Once all upgrade tasks have been completed without error, make sure the build number stored in the applications main configuration file and database now matches the build number of this version of the release. Note that this method is called "initialUpgradeFinished" because any deferred pluginDependentUpgradeTasks may still have to run, so the upgrade process is not yet complete.
Exception | when setting the database or configuration build number fails |
---|
This is used to guard against database upgrades being performed multiple times on the same database. By default, assume a non-clustered setup and allow database upgrades.
UpgradeException | If the implementation of this method encounters any errors. |
---|
Runs all upgrade prerequisites.
Once the upgrade is complete, we'll need to set the new database build number in the database.
databaseBuildNumber | The new database build number |
---|
Exception | when there is any problem setting the database build number |
---|