Class BambooPluginManagerClusterAware
- java.lang.Object
-
- com.atlassian.plugin.manager.DefaultPluginManager
-
- com.atlassian.bamboo.plugin.BambooPluginManager
-
- com.atlassian.bamboo.plugin.cluster.BambooPluginManagerClusterAware
-
- All Implemented Interfaces:
com.atlassian.plugin.PluginAccessor,com.atlassian.plugin.PluginController,com.atlassian.plugin.PluginSystemLifecycle,com.atlassian.plugin.SplitStartupPluginSystemLifecycle
public class BambooPluginManagerClusterAware extends BambooPluginManager
DecoratesBambooPluginManagerwith awareness of cluster environment.Main features: - Prevents concurrency problems via cluster locks - Manages situations where plugin events need to propagated in the cluster
- Since:
- 9.5
-
-
Field Summary
Fields Modifier and Type Field Description static longPLUGIN_SYSTEM_LOCK_TIMEOUT_SECONDS
-
Constructor Summary
Constructors Constructor Description BambooPluginManagerClusterAware(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore, SystemPluginLoaderConfiguration loaderConfiguration, List<com.atlassian.plugin.loaders.PluginLoader> extraPluginLoaders, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, File pluginDirectory, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager, @NotNull PluginClusterAwareEventListener pluginClusterAwareEventListener, @NotNull BambooClusterLockService bambooClusterLockService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisablePlugin(String key)voidenablePlugins(String... keys)voidinit()Set<String>installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts)voiduninstall(com.atlassian.plugin.Plugin plugin)-
Methods inherited from class com.atlassian.bamboo.plugin.BambooPluginManager
addPlugins, getPlugins, onContextDestroyed, onPluginEnabled
-
Methods inherited from class com.atlassian.plugin.manager.DefaultPluginManager
addDynamicModule, disablePluginInternal, disablePluginModule, disablePluginWithoutPersisting, earlyStartup, enablePluginModule, getClassLoader, getDynamicModules, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getLateStartupEnableRetryProperty, getMinimumPluginVersionsFileProperty, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getStartupOverrideFileProperty, getState, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, lateStartup, newBuilder, notifyModuleDisabled, notifyModuleEnabled, notifyUninstallPlugin, onPluginContainerUnavailable, onPluginModuleAvailable, onPluginModuleUnavailable, onPluginRefresh, onUpdateRequiresRestartState, removeDynamicModule, removeStateFromStore, revertRestartRequiredChange, scanForNewPlugins, setPluginInstaller, shutdown, uninstallNoEvent, uninstallPlugins, unloadPlugin, updatePlugin, warmRestart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.plugin.PluginAccessor
getActiveModuleDescriptorsByClass, getClassLoader, getDynamicModules, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModuleDescriptors, getModules, getModules, getPlugin, getPluginModule, getPluginRestartState, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin
-
-
-
-
Constructor Detail
-
BambooPluginManagerClusterAware
public BambooPluginManagerClusterAware(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore, SystemPluginLoaderConfiguration loaderConfiguration, List<com.atlassian.plugin.loaders.PluginLoader> extraPluginLoaders, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, File pluginDirectory, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager, @NotNull @NotNull PluginClusterAwareEventListener pluginClusterAwareEventListener, @NotNull @NotNull BambooClusterLockService bambooClusterLockService)
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfacecom.atlassian.plugin.PluginSystemLifecycle- Overrides:
initin classcom.atlassian.plugin.manager.DefaultPluginManager
-
installPlugins
public Set<String> installPlugins(com.atlassian.plugin.PluginArtifact... pluginArtifacts)
- Specified by:
installPluginsin interfacecom.atlassian.plugin.PluginController- Overrides:
installPluginsin classcom.atlassian.plugin.manager.DefaultPluginManager
-
uninstall
public void uninstall(com.atlassian.plugin.Plugin plugin)
- Specified by:
uninstallin interfacecom.atlassian.plugin.PluginController- Overrides:
uninstallin classcom.atlassian.plugin.manager.DefaultPluginManager
-
enablePlugins
public void enablePlugins(String... keys)
- Specified by:
enablePluginsin interfacecom.atlassian.plugin.PluginController- Overrides:
enablePluginsin classcom.atlassian.plugin.manager.DefaultPluginManager
-
disablePlugin
public void disablePlugin(String key)
- Specified by:
disablePluginin interfacecom.atlassian.plugin.PluginController- Overrides:
disablePluginin classBambooPluginManager
-
-