Interface UpgradeManager

All Known Subinterfaces:
BootstrapUpgradeManager
All Known Implementing Classes:
AbstractUpgradeManager, BootstrapUpgradeManagerImpl, UpgradeManagerImpl

public interface UpgradeManager
Manager to provide upgrade services
  • Method Details

    • 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