public interface UpgradeManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
UpgradeManager.Status
Status of the upgrade process
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areDelayedUpgradesRunning()
Returns true if a scheduled upgrade is in progress.
|
UpgradeManager.Status |
doUpgradeIfNeededAndAllowed(String backupPath,
UpgradeManagerParams upgradeManagerParams)
Performs the upgrade if one is required and the license is not too old to proceed with the upgrade.
|
String |
getExportFilePath()
Export path of the last backup performed by this manager
|
com.atlassian.scheduler.status.RunDetails |
getLastUpgradeResult() |
int |
getPendingDelayedUpgradeCount() |
List<UpgradeHistoryItem> |
getUpgradeHistory() |
boolean |
hasUpgradeTaskRun(Class<? extends UpgradeTask> clazz)
Return true if the upgrade task implemented in the parameter class has completed successfully..
|
UpgradeManager.Status |
scheduleDelayedUpgrades(int delayMins,
boolean isAllowReindex)
Schedules the execution of delayed upgrades.
|
int getPendingDelayedUpgradeCount()
@Nonnull UpgradeManager.Status scheduleDelayedUpgrades(int delayMins, boolean isAllowReindex)
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.boolean areDelayedUpgradesRunning()
com.atlassian.scheduler.status.RunDetails getLastUpgradeResult()
UpgradeManager.Status doUpgradeIfNeededAndAllowed(@Nullable String backupPath, UpgradeManagerParams upgradeManagerParams) throws IllegalXMLCharactersException
backupPath - - a path to the default location of the export, may be null, in which case no auto
export will be performedupgradeManagerParams - contain information needed to upgrade processIllegalXMLCharactersException - if backup was impossible due to invalid XML
charactersString getExportFilePath()
List<UpgradeHistoryItem> getUpgradeHistory()
boolean hasUpgradeTaskRun(Class<? extends UpgradeTask> clazz)
clazz - The Upgrade Task's implementing class.Copyright © 2002-2015 Atlassian. All Rights Reserved.