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 |
|---|---|
protected 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, shouldRunTaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuildNumber, needUpgradepublic BootstrapUpgradeManagerImpl(@NotNull
com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull
String fileName)
@NotNull public List<String> doUpgrade(boolean partOfSetup) throws Exception
UpgradeManagerdoUpgrade in interface UpgradeManagerpartOfSetup - - 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
BootstrapUpgradeManagerrunValidationTests in interface BootstrapUpgradeManagerList a string list of error messages. Not empty list denotes error occurred on validationExceptionprotected UpgradeTask createUpgradeTask(String className) throws UpgradeException
UpgradeExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.