public class DefaultClusterUpgradeStateManager extends Object implements ClusterUpgradeStateManager
CLUSTER_UPGRADE_STATE_CHANGED, CLUSTER_UPGRADE_STATE_DARK_FEATURE
Constructor and Description |
---|
DefaultClusterUpgradeStateManager(ClusterManager clusterManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
ClusterUpgradeStateDao clusterUpgradeStateDao,
ClusterInfo clusterInfo,
com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
MessageHandlerService messageHandlerService,
NodeBuildInfoFactory nodeBuildInfoFactory,
UpgradeScheduler upgradeScheduler,
DatabaseUpgradeStateManager databaseUpgradeStateManager) |
Modifier and Type | Method and Description |
---|---|
void |
approveUpgrade() |
void |
cancelUpgrade() |
NodeBuildInfo |
getClusterBuildInfo() |
UpgradeState |
getUpgradeState() |
void |
onUpgradesCompleted(JiraDelayedUpgradeCompletedEvent ignored) |
void |
onUpgradesFailed(JiraDelayedUpgradeFailedEvent event) |
void |
retryUpgrade() |
void |
startUpgrade() |
void |
updateState(JiraStartedEvent event) |
public DefaultClusterUpgradeStateManager(ClusterManager clusterManager, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterUpgradeStateDao clusterUpgradeStateDao, ClusterInfo clusterInfo, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager, MessageHandlerService messageHandlerService, NodeBuildInfoFactory nodeBuildInfoFactory, UpgradeScheduler upgradeScheduler, DatabaseUpgradeStateManager databaseUpgradeStateManager)
public void startUpgrade()
startUpgrade
in interface ClusterUpgradeStateManager
public void cancelUpgrade()
cancelUpgrade
in interface ClusterUpgradeStateManager
public void approveUpgrade()
approveUpgrade
in interface ClusterUpgradeStateManager
public void retryUpgrade()
retryUpgrade
in interface ClusterUpgradeStateManager
@EventListener public void updateState(JiraStartedEvent event)
@EventListener public void onUpgradesFailed(JiraDelayedUpgradeFailedEvent event)
@EventListener public void onUpgradesCompleted(JiraDelayedUpgradeCompletedEvent ignored)
@Nonnull public UpgradeState getUpgradeState()
getUpgradeState
in interface ClusterStateManager
public NodeBuildInfo getClusterBuildInfo()
getClusterBuildInfo
in interface ClusterUpgradeStateManager
Copyright © 2002-2019 Atlassian. All Rights Reserved.