com.atlassian.sal.confluence.lifecycle
Class MeasuringPluginUpgradeManager

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

public class MeasuringPluginUpgradeManager
extends com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager

Measures the execution times of individual upgrade tasks.

Since:
5.6

Field Summary
 
Fields inherited from class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
LOCK_TIMEOUT_PROPERTY, LOCK_TIMEOUT_SECONDS
 
Constructor Summary
MeasuringPluginUpgradeManager(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)
           
 
Method Summary
 List<com.atlassian.sal.api.message.Message> upgradeInternal(com.atlassian.plugin.Plugin plugin)
           
 
Methods inherited from class com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager
afterPropertiesSet, destroy, getUpgradeTasks, onBind, onPluginEnabled, onStart, upgrade, upgradeInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasuringPluginUpgradeManager

public MeasuringPluginUpgradeManager(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)
Method Detail

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


Copyright © 2003–2015 Atlassian. All rights reserved.