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
 java.util.List<java.lang.String> doUpgrade(boolean partOfSetup)
          Method to fire off the upgrade process
 java.lang.String getBuildNumber()
          This gets the pre-build number
 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 build was successful or not

doUpgrade

@NotNull
java.util.List<java.lang.String> doUpgrade(boolean partOfSetup)
                                           throws java.lang.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 a string collection of error messages. Collection not empty denotes error occurred on upgrade
Throws:
java.lang.Exception

getBuildNumber

@NotNull
java.lang.String getBuildNumber()
This gets the pre-build number

Returns:
the current build number (in application config file)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.