Package com.atlassian.bamboo.upgrade
Class UpgradeLauncher
java.lang.Object
com.atlassian.bamboo.upgrade.UpgradeLauncher
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
Upgrade launcher checks if the instance requires an upgrade or not.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(javax.servlet.ServletContextEvent servletContextEvent) void
contextInitialized
(javax.servlet.ServletContextEvent sce) static void
initialisePlansAfterImport
(javax.servlet.ServletContext servletContext) static void
runBootstrapUpgradesForHotswapImport
(javax.servlet.ServletContext servletContext) static void
upgradeAndStartBamboo
(javax.servlet.ServletContext servletContext, boolean isPartOfSetup) Updates the database, upgrades and starts Bamboo.
-
Constructor Details
-
UpgradeLauncher
public UpgradeLauncher()
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce) - Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextDestroyed
in interfacejavax.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
-