Class SetupUpgradeService

java.lang.Object
com.atlassian.jira.upgrade.SetupUpgradeService
All Implemented Interfaces:
UpgradeService

public class SetupUpgradeService extends Object implements UpgradeService
Upgrade service used in setup process. It triggers lucene indexing only if immediate upgrade tasks were executed.
  • Constructor Details

  • Method Details

    • runUpgrades

      public UpgradeResult runUpgrades()
      Description copied from interface: UpgradeService
      Run 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:
      runUpgrades in interface UpgradeService
      Returns:
      the result of running the upgrades.
    • areUpgradesRunning

      public boolean areUpgradesRunning()
      Description copied from interface: UpgradeService
      Checks if any upgrades are running.
      Specified by:
      areUpgradesRunning in interface UpgradeService
      Returns:
      true if and only if upgrade job is running, false otherwise.