public class BootstrapUpgradeManagerImpl extends AbstractUpgradeManager implements BootstrapUpgradeManager, org.springframework.context.ApplicationContextAware
applicationConfig, bambooSharedProperties, buildNumberComparator, fileName, newBuildNumber, oldBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression| Modifier | Constructor and Description |
|---|---|
|
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BootstrapUpgradeHelper bootstrapUpgradeHelper,
BootstrapManager bootstrapManager,
String fileName) |
protected |
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BootstrapUpgradeHelper bootstrapUpgradeHelper,
BootstrapManager bootstrapManager,
String newBuildNumber,
String fileName,
Supplier<BambooSharedProperties> bambooSharedPropertiesSupplier) |
| Modifier and Type | Method and Description |
|---|---|
UpgradeTask |
createUpgradeTask(String className) |
List<String> |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process
|
List<String> |
runValidationTasks()
Runs validation tests defined in upgrades.xml
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext) |
classifyUpgradeTask, createTasks, forEachTask, getBuildNumber, getDescription, getOldBuildNumber, getUpgradeDocument, getUpgradeTasks, needUpgrade, populateRelevantUpgrades, runUpgradeTask, setTextProvider, setUpgradeUtilityBean, shouldRunTaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuildNumber, getOldBuildNumber, needUpgradepublic BootstrapUpgradeManagerImpl(@NotNull
com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull
BootstrapUpgradeHelper bootstrapUpgradeHelper,
BootstrapManager bootstrapManager,
@NotNull
String fileName)
protected BootstrapUpgradeManagerImpl(@NotNull
com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull
BootstrapUpgradeHelper bootstrapUpgradeHelper,
BootstrapManager bootstrapManager,
@NotNull
String newBuildNumber,
@NotNull
String fileName,
@NotNull
Supplier<BambooSharedProperties> bambooSharedPropertiesSupplier)
@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 setupException@NotNull public List<String> runValidationTasks() throws ValidationException
BootstrapUpgradeManagerrunValidationTasks in interface BootstrapUpgradeManagerList a string list of error messages. Not empty list denotes error occurred in validationValidationException - when a critical error occurred and validation has been abortedpublic UpgradeTask createUpgradeTask(String className) throws UpgradeException
createUpgradeTask in class AbstractUpgradeManagerUpgradeExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.