Interface DatabaseUpgradeStateManager

All Known Implementing Classes:
DefaultDatabaseUpgradeStateManager, NoopDatabaseUpgradeStateManager

public interface DatabaseUpgradeStateManager
  • 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 in DefaultClusterUpgradeStateManager.AUTO_TRANSITION_STATES then you should use ClusterStateManager.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_FEATURE is turned on and cluster is not in UpgradeState.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: