public class DefaultUpgradeService extends Object implements UpgradeService
Constructor and Description |
---|
DefaultUpgradeService(IndexingUpgradeService indexingUpgradeService,
DelayedUpgradeService delayedUpgradeService,
com.atlassian.upgrade.spi.UpgradeTaskFactory upgradeTaskFactory,
BuildUtilsInfo buildUtilsInfo,
DatabaseUpgradeStateManager databaseUpgradeStateManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
areUpgradesRunning()
Checks if any upgrades are running.
|
UpgradeResult |
runUpgrades()
Executed upgrades depending on which upgrades are pending.
|
public DefaultUpgradeService(IndexingUpgradeService indexingUpgradeService, DelayedUpgradeService delayedUpgradeService, com.atlassian.upgrade.spi.UpgradeTaskFactory upgradeTaskFactory, BuildUtilsInfo buildUtilsInfo, DatabaseUpgradeStateManager databaseUpgradeStateManager)
public UpgradeResult runUpgrades()
First a check for pending AbstractImmediateUpgradeTask
s is done. If there are some all upgrades
will be run synchronously. If not it will try to schedule delayed upgrade tasks.
runUpgrades
in interface UpgradeService
public boolean areUpgradesRunning()
UpgradeService
areUpgradesRunning
in interface UpgradeService
Copyright © 2002-2019 Atlassian. All Rights Reserved.