public class DefaultDatabaseUpgradeStateManager extends Object implements DatabaseUpgradeStateManager
Constructor and Description |
---|
DefaultDatabaseUpgradeStateManager(FeatureManager featureManager,
ClusterUpgradeStateDao clusterUpgradeStateDao) |
Modifier and Type | Method and Description |
---|---|
boolean |
areDelayedUpgradesHandledByCluster()
Checks if delayed upgrades are handled by the cluster.
|
boolean |
areUpgradesAllowedByCluster()
Checks if upgrades are allowed to run in the cluster.
|
UpgradeState |
getDatabaseUpgradeState()
This does not return the most up to date state of the cluster.
|
public DefaultDatabaseUpgradeStateManager(FeatureManager featureManager, ClusterUpgradeStateDao clusterUpgradeStateDao)
public UpgradeState getDatabaseUpgradeState()
DatabaseUpgradeStateManager
DefaultClusterUpgradeStateManager.AUTO_TRANSITION_STATES
then you should use
ClusterStateManager.getUpgradeState()
instead.getDatabaseUpgradeState
in interface DatabaseUpgradeStateManager
public boolean areDelayedUpgradesHandledByCluster()
DatabaseUpgradeStateManager
Delayed upgrade tasks are handled by the cluster when ClusterUpgradeStateManager.CLUSTER_UPGRADE_STATE_DARK_FEATURE
is
turned on and cluster is not in UpgradeState.STABLE
. In non-clustered environment
this will always return false
areDelayedUpgradesHandledByCluster
in interface DatabaseUpgradeStateManager
public boolean areUpgradesAllowedByCluster()
DatabaseUpgradeStateManager
The difference to DatabaseUpgradeStateManager.areDelayedUpgradesHandledByCluster()
is that it will allow running upgrade tasks
when the cluster state currently allows running upgrade tasks during normal Zero Downtime Upgrades operation.
areUpgradesAllowedByCluster
in interface DatabaseUpgradeStateManager
Copyright © 2002-2022 Atlassian. All Rights Reserved.