com.atlassian.jira.upgrade
Class UpgradeLauncher

java.lang.Object
  extended by com.atlassian.jira.upgrade.UpgradeLauncher
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class UpgradeLauncher
extends java.lang.Object
implements javax.servlet.ServletContextListener

Tests if an upgrade is necessary, and performs it. Note that upgrades are performed on the same thread


Constructor Summary
UpgradeLauncher()
           
 
Method Summary
static void checkIfUpgradeNeeded(javax.servlet.ServletContext servletContext)
          This will invoke the UpgradeManager to see if an upgrade is needed.
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
          The upgrade runner loads the Upgrade Manager, which then performs any necessary upgrades.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeLauncher

public UpgradeLauncher()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
The upgrade runner loads the Upgrade Manager, which then performs any necessary upgrades.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

checkIfUpgradeNeeded

public static void checkIfUpgradeNeeded(javax.servlet.ServletContext servletContext)
This will invoke the UpgradeManager to see if an upgrade is needed.

This is run at JIRA startup time and can be invoked later if you need to restart JIRA.

Parameters:
servletContext - this is need to put up Johnson events as the upgrade happens and also if the upgrade fails


Copyright © 2002-2010 Atlassian. All Rights Reserved.