Package com.atlassian.jira.cluster.zdu
Interface DatabaseUpgradeStateManager
- All Known Implementing Classes:
DefaultDatabaseUpgradeStateManager,NoopDatabaseUpgradeStateManager
public interface DatabaseUpgradeStateManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if delayed upgrades are handled by the cluster.booleanChecks if upgrades are allowed to run in the cluster.This does not return the most up to date state of the cluster.
-
Method Details
-
getDatabaseUpgradeState
UpgradeState getDatabaseUpgradeState()This does not return the most up to date state of the cluster. If you rely on specific states that are inDefaultClusterUpgradeStateManager.AUTO_TRANSITION_STATESthen you should useClusterStateManager.getUpgradeState()instead.- Returns:
- the upgrade state of the cluster as represented in the database
-
areDelayedUpgradesHandledByCluster
boolean areDelayedUpgradesHandledByCluster()Checks if delayed upgrades are handled by the cluster.Delayed upgrade tasks are handled by the cluster when
ClusterUpgradeStateManager.CLUSTER_UPGRADE_STATE_DARK_FEATUREis turned on and cluster is not inUpgradeState.STABLE. In non-clustered environment this will always return false- Returns:
- true if and only if delayed upgrades are handled by the cluster
-
areUpgradesAllowedByCluster
boolean areUpgradesAllowedByCluster()Checks if upgrades are allowed to run in the cluster.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.- Returns:
-