Package com.atlassian.bamboo.upgrade
Interface UpgradeManager
-
- All Known Subinterfaces:
BootstrapUpgradeManager
- All Known Implementing Classes:
AbstractUpgradeManager
,BootstrapUpgradeManagerImpl
,UpgradeManagerImpl
public interface UpgradeManager
Manager to provide upgrade services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull List<String>
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process@NotNull String
getBuildNumber()
This gets the current build numberString
getOldBuildNumber()
boolean
needUpgrade()
Determines whether we need to run the upgrade or not.
-
-
-
Method Detail
-
needUpgrade
boolean needUpgrade()
Determines whether we need to run the upgrade or not.- Returns:
boolean
whether the upgrade is needed
-
doUpgrade
@NotNull @NotNull List<String> doUpgrade(boolean partOfSetup) throws Exception
Method to fire off the upgrade process- Parameters:
partOfSetup
- - whether or not the upgrade is being run as part of the setup- Returns:
- collection of error messages, not empty collection denotes error occurred on upgrade
- Throws:
Exception
-
getBuildNumber
@NotNull @NotNull String getBuildNumber()
This gets the current build number- Returns:
- the current build number (stored in application config file)
-
getOldBuildNumber
String getOldBuildNumber()
- Returns:
- build number before upgrade
-
-