com.atlassian.bamboo.upgrade
Class UpgradeManagerImpl
java.lang.Object
com.atlassian.bamboo.upgrade.AbstractUpgradeManager
com.atlassian.bamboo.upgrade.UpgradeManagerImpl
- All Implemented Interfaces:
- UpgradeManager
public class UpgradeManagerImpl
- extends AbstractUpgradeManager
Constructor Summary |
|
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
java.lang.String fileName)
|
protected |
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
java.lang.String newBuildNumber,
java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeManagerImpl
public UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
java.lang.String fileName)
UpgradeManagerImpl
protected UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
java.lang.String newBuildNumber,
java.lang.String fileName)
doUpgrade
@NotNull
public java.util.List<java.lang.String> doUpgrade(boolean partOfSetup)
throws java.lang.Exception
- Description copied from interface:
UpgradeManager
- Method to fire off the upgrade process
- Parameters:
partOfSetup
- - whether or not the upgrade is being run as part of the setup
- Returns:
Collection
a string collection of error messages. Collection not empty
denotes error occurred on upgrade
- Throws:
java.lang.Exception
populateRelevantUpgrades
protected void populateRelevantUpgrades(@NotNull
java.lang.String buildNumberLo,
@NotNull
java.lang.String buildNumberHi)
throws com.atlassian.upgrade.UpgradeException
- Overrides:
populateRelevantUpgrades
in class AbstractUpgradeManager
- Throws:
com.atlassian.upgrade.UpgradeException
classifyUpgradeTask
protected void classifyUpgradeTask(@NotNull
java.lang.String bambooBuildNumber,
@NotNull
UpgradeTask task)
throws com.atlassian.upgrade.UpgradeException
- Overrides:
classifyUpgradeTask
in class AbstractUpgradeManager
- Throws:
com.atlassian.upgrade.UpgradeException
isFullReindexWhenUpgradesFinish
public boolean isFullReindexWhenUpgradesFinish()
setFullReindexWhenUpgradesFinish
public void setFullReindexWhenUpgradesFinish(boolean fullReindexWhenUpgradesFinish)
- Description copied from interface:
UpgradeManager
- Marks that the UpgradeManger should do a full reindex when all upgrades have finished successfully
setBuildResultsIndexer
public void setBuildResultsIndexer(BuildResultsIndexer buildResultsIndexer)
setSystemStatisticsBean
public void setSystemStatisticsBean(SystemStatisticsBean systemStatisticsBean)
Copyright © 2010 Atlassian. All Rights Reserved.