Class FirstDataImportUpgradeService

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

public class FirstDataImportUpgradeService extends Object implements UpgradeService
Upgrade service for the first data import. It runs upgrades without triggering Lucene indexing and also informs upgrade tasks that they are run on clean database.
  • Constructor Details

    • FirstDataImportUpgradeService

      public FirstDataImportUpgradeService(LoggingUpgradeService loggingUpgradeService)
  • 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.