Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.upgrade
Interface UpgradeManager

All Known Implementing Classes:
  UpgradeManagerImpl

    public interface UpgradeManager

Method Summary
`Collection` | `doUpgrade()` Method to fire off the upgrade process
`String` | `getBuildNumber()` This gets the pre-build number
`SortedMap` | `getUpgrades()` Gets a map of upgrade tasks which need to run.
`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

    Collection doUpgrade()
                         throws Exception

  Method to fire off the upgrade process

  Returns:
    `Collection` a string collection of error messages. Collection not empty denotes error occured on upgrade
  Throws:
    `Exception`

### getBuildNumber

    String getBuildNumber()

  This gets the pre-build number

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

### getUpgrades

    SortedMap getUpgrades()

  Gets a map of upgrade tasks which need to run.

  Returns:
    `SortedMap` map of upgrade tasks, keys are the string representations of the build number.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.