java.lang.Object | |
↳ | com.atlassian.jira.upgrade.UpgradeManagerImpl |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UpgradeManagerImpl.Upgrades |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JOB_ID | |||||||||||
JOB_RUNNER_KEY |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if a scheduled upgrade is in progress.
| |||||||||||
Gets all the upgrades (standard, professional and enterprise) that need to be run from the build number stored in
the database to the current build number
Get the set of upgradeNumbers which are to be performed for this upgrade. | |||||||||||
Performs the upgrade if one is required and the license is not too old to proceed with the upgrade.
| |||||||||||
Export path of the last backup performed by this manager
| |||||||||||
Return true if the upgrade task implemented in the parameter class has completed successfully..
| |||||||||||
Schedules the execution of delayed upgrades.
| |||||||||||
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns true if a scheduled upgrade is in progress.
Gets all the upgrades (standard, professional and enterprise) that need to be run from the build number stored in the database to the current build number
Get the set of upgradeNumbers which are to be performed for this upgrade.
Get the Maps of relevant upgrades using {#getRelevantUpgradesFromList}
Iterate over these numbers and if either of the standard, professional or enterprise maps contains an UpgradeTask
with this number then do the upgrade
If errors are found, it will cancel the upgrade, and list errors to the console.
For each upgrade that happens successfully, it will increment the build number in the database, so that if one fails, you do not have to repeat all the upgrades that have already run.
If there are no errors from the upgrade, the build number in the database is incremented to the current build number. This is because there may be no upgrades for a particular version & needUpgrade() checks build no in database.
upgradeManagerParams | contain information needed to upgrade process |
---|
Performs the upgrade if one is required and the license is not too old to proceed with the upgrade.
backupPath | - a path to the default location of the export, may be null , in which case no auto
export will be performed |
---|---|
upgradeManagerParams | contain information needed to upgrade process |
Export path of the last backup performed by this manager
Return true if the upgrade task implemented in the parameter class has completed successfully.. Note: We use the class as the parameter to help when tasks are refactored and reordered etc.
clazz | The Upgrade Task's implementing class. |
---|
Schedules the execution of delayed upgrades.
delayMins | the amount of time in minutes to wait before executing the delayed upgrades. |
---|---|
isAllowReindex | set this to true to allow any required reindex to be done. |
This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
Exception |
---|