public class BootstrapUpgradeManagerImpl extends AbstractUpgradeManager implements BootstrapUpgradeManager, org.springframework.context.ApplicationContextAware
applicationConfig, buildNumberComparator, fileName, newBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression
Modifier | Constructor and Description |
---|---|
|
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
String fileName) |
protected |
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
String newBuildNumber,
String fileName) |
Modifier and Type | Method and Description |
---|---|
UpgradeTask |
createUpgradeTask(String className) |
List<String> |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process
|
List<String> |
runValidationTests()
Runs validation tests defined in upgrades.xml
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext) |
classifyUpgradeTask, createTasks, getBuildNumber, getUpgradeDocument, getUpgradeTasks, needUpgrade, populateRelevantUpgrades, runUpgradeTask, setBuildNumber, setTextProvider, setUpgradeUtilityBean, shouldRunTask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, needUpgrade
public BootstrapUpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull String fileName)
@NotNull public List<String> doUpgrade(boolean partOfSetup) throws Exception
UpgradeManager
doUpgrade
in interface 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
@NotNull public List<String> runValidationTests() throws Exception
BootstrapUpgradeManager
runValidationTests
in interface BootstrapUpgradeManager
List
a string list of error messages. Not empty list denotes error occurred on validationException
public UpgradeTask createUpgradeTask(String className) throws UpgradeException
createUpgradeTask
in class AbstractUpgradeManager
UpgradeException
public void setApplicationContext(org.springframework.context.ApplicationContext appContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.