public class UpgradeManagerImpl extends Object implements UpgradeManager
Constructor and Description |
---|
UpgradeManagerImpl(PropertyManager propertyManager,
net.sf.ehcache.CacheManager cacheManager,
CrowdBootstrapManager bootstrapManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
List<UpgradeTask> upgradeTasks,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
doUpgrade()
Method to fire off the upgrade process
|
protected int |
getApplicationBuildNumber() |
CrowdBootstrapManager |
getBootstrapManager() |
int |
getDataBuildNumber()
This gets the pre-build number.
|
PropertyManager |
getPropertyManager() |
List<UpgradeTask> |
getRequiredUpgrades() |
List<UpgradeTask> |
getUpgradeTasks() |
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not.
|
public UpgradeManagerImpl(PropertyManager propertyManager, net.sf.ehcache.CacheManager cacheManager, CrowdBootstrapManager bootstrapManager, com.atlassian.beehive.ClusterLockService clusterLockService, List<UpgradeTask> upgradeTasks, org.springframework.transaction.PlatformTransactionManager transactionManager)
protected int getApplicationBuildNumber()
public int getDataBuildNumber()
UpgradeManager
getDataBuildNumber
in interface UpgradeManager
public List<UpgradeTask> getRequiredUpgrades()
getRequiredUpgrades
in interface UpgradeManager
public boolean needUpgrade()
UpgradeManager
needUpgrade
in interface UpgradeManager
boolean
whether the build was successful or notpublic Collection<String> doUpgrade() throws Exception
UpgradeManager
doUpgrade
in interface UpgradeManager
Collection
a string collection of error messages. Collection not empty
denotes error occurred on upgradeException
- error occurred during upgrade.public PropertyManager getPropertyManager()
public List<UpgradeTask> getUpgradeTasks()
public CrowdBootstrapManager getBootstrapManager()
Copyright © 2020 Atlassian. All rights reserved.