public class DefaultClusterUpgradePluginLoaderFactory extends Object implements ClusterUpgradePluginLoaderFactory
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:
UpgradeState.STABLE
to UpgradeState.READY_TO_UPGRADE
UpgradeState.RUNNING_UPGRADE_TASKS
to UpgradeState.STABLE
UpgradeState.STABLE
state and its application build number
is equal to the cluster build number.
UpgradeState.STABLE
and
its application build number is equal to the cluster build number.
DefaultClusterUpgradeStateManager
,
FreezeFileManager
,
UpgradeState
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.plugin.loaders.PluginLoader |
create(com.atlassian.plugin.loaders.classloading.Scanner installedPluginsScanner,
File installedPluginsDirectory,
File freezeFile,
List<com.atlassian.plugin.factories.PluginFactory> pluginFactories) |
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)
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)
create
in interface ClusterUpgradePluginLoaderFactory
Copyright © 2002-2021 Atlassian. All Rights Reserved.