Package com.atlassian.jira.cluster.zdu
Class DefaultClusterUpgradePluginLoaderFactory
java.lang.Object
com.atlassian.jira.cluster.zdu.DefaultClusterUpgradePluginLoaderFactory
- All Implemented Interfaces:
ClusterUpgradePluginLoaderFactory
public class DefaultClusterUpgradePluginLoaderFactory
extends Object
implements ClusterUpgradePluginLoaderFactory
Creates a plugin loader which can freeze the list of loaded plugins - effectively stopping it from loading new plugins
put into the
installed-plugins directory. How this works is defined in the FreezeFileManager.
Nodes that are in a cluster which is not in UpgradeState.STABLE state and have the same build number as the
cluster should freeze their plugins.
Specifically, it should create a freeze file when:
- It caused the transition from
UpgradeState.STABLEtoUpgradeState.READY_TO_UPGRADE
- It caused the transition from
UpgradeState.RUNNING_UPGRADE_TASKStoUpgradeState.STABLE
-
It starts up and joins a cluster that is not in
UpgradeState.STABLEstate and its application build number is equal to the cluster build number. -
It receives a cluster message that the cluster upgrade state is now not
UpgradeState.STABLEand its application build number is equal to the cluster build number.
- Since:
- v7.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClusterUpgradePluginLoaderFactory(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, ClusterUpgradeStateManager clusterUpgradeStateManager, MessageHandlerService messageHandlerService, BuildUtilsInfo buildUtilsInfo, com.atlassian.plugin.event.PluginEventManager pluginEventManager, FreezeFileScannerFactory freezeFileScannerFactory, FreezeFileManagerFactory freezeFileManagerFactory, NodeBuildInfoFactory nodeBuildInfoFactory) -
Method Summary
-
Constructor Details
-
DefaultClusterUpgradePluginLoaderFactory
public DefaultClusterUpgradePluginLoaderFactory(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, ClusterUpgradeStateManager clusterUpgradeStateManager, MessageHandlerService messageHandlerService, BuildUtilsInfo buildUtilsInfo, com.atlassian.plugin.event.PluginEventManager pluginEventManager, FreezeFileScannerFactory freezeFileScannerFactory, FreezeFileManagerFactory freezeFileManagerFactory, NodeBuildInfoFactory nodeBuildInfoFactory)
-
-
Method Details
-
create
public com.atlassian.plugin.loaders.PluginLoader create(com.atlassian.plugin.loaders.classloading.Scanner installedPluginsScanner, File installedPluginsDirectory, File freezeFile, List<com.atlassian.plugin.factories.PluginFactory> pluginFactories) - Specified by:
createin interfaceClusterUpgradePluginLoaderFactory
-