com.atlassian.jira.upgrade
Class UpgradeLauncher

java.lang.Object
  extended by com.atlassian.jira.upgrade.UpgradeLauncher
All Implemented Interfaces:
JiraLauncher

public class UpgradeLauncher
extends Object
implements JiraLauncher

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 start()
          The upgrade runner loads the Upgrade Manager, which then performs any necessary upgrades.
 void stop()
          Called when JIRA is shutting down.
 
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

start

public void start()
The upgrade runner loads the Upgrade Manager, which then performs any necessary upgrades.

Specified by:
start in interface JiraLauncher
See Also:
DefaultJiraLauncher

stop

public void stop()
Description copied from interface: JiraLauncher
Called when JIRA is shutting down. Just like startup this can . The logic of what exactly happens when is encapsulated in the DefaultJiraLauncher.

Specified by:
stop in interface JiraLauncher
See Also:
DefaultJiraLauncher

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-2015 Atlassian. All Rights Reserved.