Class DefaultUpgradeService

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

public class DefaultUpgradeService extends Object implements UpgradeService
Upgrade service that executes upgrades depending on which upgrades are pending.
  • Constructor Details

  • Method Details

    • runUpgrades

      public UpgradeResult runUpgrades()
      Executed upgrades depending on which upgrades are pending.

      First a check for pending AbstractImmediateUpgradeTasks is done. If there are some Jira upgrades, they will be run synchronously. Then other upgrades taks like plugins upgrade tasks will be scheduled in delayed upgrade tasks service.

      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.