public class UpgradeManagerImpl extends AbstractUpgradeManager
applicationConfig, buildNumberComparator, fileName, newBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression
Modifier | Constructor and Description |
---|---|
|
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
IndexerManager indexerManager,
String fileName) |
protected |
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
IndexerManager indexerManager,
String newBuildNumber,
String fileName) |
Modifier and Type | Method and Description |
---|---|
protected void |
classifyUpgradeTask(String bambooBuildNumber,
UpgradeTask task) |
List<String> |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process
|
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not.
|
protected void |
populateRelevantUpgrades(String buildNumberLo,
String buildNumberHi) |
createTasks, createUpgradeTask, getBuildNumber, getUpgradeDocument, getUpgradeTasks, runUpgradeTask, setBuildNumber, setTextProvider, setUpgradeUtilityBean, shouldRunTask
public UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull IndexerManager indexerManager, @NotNull String fileName)
protected UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull IndexerManager indexerManager, @NotNull String newBuildNumber, @NotNull String fileName)
public boolean needUpgrade()
UpgradeManager
needUpgrade
in interface UpgradeManager
needUpgrade
in class AbstractUpgradeManager
boolean
whether the build was successful or not@NotNull public List<String> doUpgrade(boolean partOfSetup) throws Exception
UpgradeManager
partOfSetup
- - whether or not the upgrade is being run as part of the setupCollection
a string collection of error messages. Collection not empty
denotes error occurred on upgradeException
protected void populateRelevantUpgrades(@NotNull String buildNumberLo, @NotNull String buildNumberHi) throws UpgradeException
populateRelevantUpgrades
in class AbstractUpgradeManager
UpgradeException
protected void classifyUpgradeTask(@NotNull String bambooBuildNumber, @NotNull UpgradeTask task) throws UpgradeException
classifyUpgradeTask
in class AbstractUpgradeManager
UpgradeException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.