public class BootstrapUpgradeManagerImpl extends AbstractUpgradeManager implements BootstrapUpgradeManager, org.springframework.context.ApplicationContextAware
applicationConfig, buildNumberComparator, fileName, newBuildNumber, oldBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression
Modifier | Constructor and Description |
---|---|
|
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BootstrapUpgradeHelper bootstrapUpgradeHelper,
String fileName) |
protected |
BootstrapUpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BootstrapUpgradeHelper bootstrapUpgradeHelper,
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
|
String |
getBuildNumber()
This gets the current build number
|
List<String> |
runValidationTasks()
Runs validation tests defined in upgrades.xml
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext) |
classifyUpgradeTask, createTasks, forEachTask, getDescription, getOldBuildNumber, getUpgradeDocument, getUpgradeTasks, needUpgrade, populateRelevantUpgrades, runUpgradeTask, setTextProvider, setUpgradeUtilityBean, shouldRunTask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOldBuildNumber, needUpgrade
public BootstrapUpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull BootstrapUpgradeHelper bootstrapUpgradeHelper, @NotNull String fileName)
protected BootstrapUpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull BootstrapUpgradeHelper bootstrapUpgradeHelper, @NotNull String newBuildNumber, @NotNull String fileName)
@NotNull public String getBuildNumber()
UpgradeManager
getBuildNumber
in interface UpgradeManager
@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 setupException
@NotNull public List<String> runValidationTasks() throws ValidationException
BootstrapUpgradeManager
runValidationTasks
in interface BootstrapUpgradeManager
List
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 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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.