Package com.atlassian.jira.upgrade
Class SetupUpgradeService
java.lang.Object
com.atlassian.jira.upgrade.SetupUpgradeService
- All Implemented Interfaces:
UpgradeService
Upgrade service used in setup process. It triggers lucene indexing only if immediate upgrade tasks were executed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if any upgrades are running.Run the upgrades pending upgrades.
-
Constructor Details
-
SetupUpgradeService
-
-
Method Details
-
runUpgrades
Description copied from interface:UpgradeServiceRun the upgrades pending upgrades.This is not linked to provisioning or import but when we just want to run the upgrades, e.g. via the REST endpoint. A re-index will be run after finishing the upgrades.
- Specified by:
runUpgradesin interfaceUpgradeService- Returns:
- the result of running the upgrades.
-
areUpgradesRunning
public boolean areUpgradesRunning()Description copied from interface:UpgradeServiceChecks if any upgrades are running.- Specified by:
areUpgradesRunningin interfaceUpgradeService- Returns:
- true if and only if upgrade job is running, false otherwise.
-