Class UpgradeLauncher

java.lang.Object
com.atlassian.bamboo.upgrade.UpgradeLauncher
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class UpgradeLauncher extends Object implements javax.servlet.ServletContextListener
Upgrade launcher checks if the instance requires an upgrade or not.
  • Constructor Details

    • UpgradeLauncher

      public UpgradeLauncher()
  • Method Details

    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
    • runBootstrapUpgradesForHotswapImport

      public static void runBootstrapUpgradesForHotswapImport(javax.servlet.ServletContext servletContext)
    • upgradeAndStartBamboo

      public static void upgradeAndStartBamboo(javax.servlet.ServletContext servletContext, boolean isPartOfSetup)
      Updates the database, upgrades and starts Bamboo.
      Parameters:
      servletContext -
      isPartOfSetup - - Will only run upgrade tasks that's relevant for the setup process
    • initialisePlansAfterImport

      public static void initialisePlansAfterImport(javax.servlet.ServletContext servletContext) throws IOException
      Throws:
      IOException