public class

UpgradeLauncher

extends Object
implements JiraLauncher
java.lang.Object
   ↳ com.atlassian.jira.upgrade.UpgradeLauncher

Class Overview

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

Summary

Public Constructors
UpgradeLauncher(JohnsonProvider johnsonProvider)
Public Methods
static void checkIfUpgradeNeeded(ServletContext servletContext, JohnsonProvider johnsonProvider)
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.startup.JiraLauncher

Public Constructors

public UpgradeLauncher (JohnsonProvider johnsonProvider)

Public Methods

public static void checkIfUpgradeNeeded (ServletContext servletContext, JohnsonProvider johnsonProvider)

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

public void start ()

The upgrade runner loads the Upgrade Manager, which then performs any necessary upgrades.

public void stop ()

Called when JIRA is shutting down. Just like startup this can . The logic of what exactly happens when is encapsulated in the DefaultJiraLauncher.