public interface ActiveObjectUpgradeManager
| 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.
|
void upgrade(Prefix tableNamePrefix, List<ActiveObjectsUpgradeTask> upgradeTasks, com.google.common.base.Supplier<ActiveObjects> ao)
Manages 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.
tableNamePrefix - the prefix for table namesupgradeTasks - the list of upgrade tasks to applyao - an ActiveObjects supplier.Copyright © 2018 Atlassian. All rights reserved.