public final class ActiveObjectUpgradeManagerImpl extends Object implements ActiveObjectUpgradeManager
| Constructor and Description |
|---|
ActiveObjectUpgradeManagerImpl(ModelVersionManager versionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
upgrade(Prefix tableNamePrefix,
List<ActiveObjectsUpgradeTask> upgradeTasks,
com.google.common.base.Supplier<ActiveObjects> ao)
Manages the upgrades for a given plugin.
|
public ActiveObjectUpgradeManagerImpl(ModelVersionManager versionManager)
public void upgrade(Prefix tableNamePrefix, List<ActiveObjectsUpgradeTask> upgradeTasks, com.google.common.base.Supplier<ActiveObjects> ao)
ActiveObjectUpgradeManagerManages the upgrades for a given plugin.
Upgrade tasks are treated atomically. I.e the current version of the model is updated after each upgrade task is completed. If an upgrade task fails (throws an exception) then sub-sequent upgrade tasks won't be run, and when this method is called the next time it will resume from the 'same point' where it failed.
upgrade in interface ActiveObjectUpgradeManagertableNamePrefix - the prefix for table namesupgradeTasks - the list of upgrade tasks to applyao - an ActiveObjects supplier.Copyright © 2018 Atlassian. All rights reserved.