public interface DatabaseUpgradeStateManager
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.
|
UpgradeState getDatabaseUpgradeState()
DefaultClusterUpgradeStateManager.AUTO_TRANSITION_STATES
then you should use
ClusterStateManager.getUpgradeState()
instead.boolean areDelayedUpgradesHandledByCluster()
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
boolean areUpgradesAllowedByCluster()
The difference to areDelayedUpgradesHandledByCluster()
is that it will allow running upgrade tasks
when the cluster state currently allows running upgrade tasks during normal Zero Downtime Upgrades operation.
Copyright © 2002-2018 Atlassian. All Rights Reserved.