Class DefaultPluginUpgradeFinalizationManager

java.lang.Object
com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
com.atlassian.sal.confluence.lifecycle.DefaultPluginUpgradeFinalizationManager
All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware, com.atlassian.sal.api.upgrade.PluginUpgradeManager, org.springframework.beans.factory.InitializingBean

public class DefaultPluginUpgradeFinalizationManager extends com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
An sub-class of SAL's DefaultPluginUpgradeManager that specifically manages the lifecycle of PluginUpgradeFinalizationTasks in the context of ZDU, i.e. defers the execution of those tasks while in ZDU mode.
Since:
7.14
See Also:
  • Field Summary

    Fields inherited from class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager

    LOCK_TIMEOUT_PROPERTY, LOCK_TIMEOUT_SECONDS
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultPluginUpgradeFinalizationManager(List<com.atlassian.sal.api.upgrade.PluginUpgradeTask> upgradeTasks, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.atlassian.beehive.ClusterLockService clusterLockService, ZduManager zduManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    List<com.atlassian.sal.api.message.Message>
     
    List<com.atlassian.sal.api.message.Message>
    upgradeInternal(com.atlassian.plugin.Plugin plugin)
     

    Methods inherited from class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager

    afterPropertiesSet, getUpgradeTasks, onBind, onPluginEnabled, onStart, onStop, upgrade

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultPluginUpgradeFinalizationManager

      public DefaultPluginUpgradeFinalizationManager(List<com.atlassian.sal.api.upgrade.PluginUpgradeTask> upgradeTasks, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.atlassian.beehive.ClusterLockService clusterLockService, ZduManager zduManager)
  • Method Details

    • upgradeInternal

      public List<com.atlassian.sal.api.message.Message> upgradeInternal()
      Overrides:
      upgradeInternal in class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
    • upgradeInternal

      public List<com.atlassian.sal.api.message.Message> upgradeInternal(com.atlassian.plugin.Plugin plugin)
      Overrides:
      upgradeInternal in class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
    • onFinalizationRequested

      public void onFinalizationRequested(ZduFinalizationRequestEvent event)