Enum Class UpgradeState

java.lang.Object
java.lang.Enum<UpgradeState>
com.atlassian.jira.cluster.zdu.UpgradeState
All Implemented Interfaces:
Serializable, Comparable<UpgradeState>, Constable

@ExperimentalApi public enum UpgradeState extends Enum<UpgradeState>
This defines which state the cluster is currently operating in.
Since:
7.3
  • Enum Constant Details

    • STABLE

      public static final UpgradeState STABLE
      Stable state. This is the default state that the cluster is in when there are no upgrades taking place.
    • READY_TO_UPGRADE

      public static final UpgradeState READY_TO_UPGRADE
      Cluster nodes are ready to be brought down and upgraded.
    • MIXED

      public static final UpgradeState MIXED
      At least one node has been upgraded and re-joined the cluster with a higher build number. READY_TO_UPGRADE still applies.
    • READY_TO_RUN_UPGRADE_TASKS

      public static final UpgradeState READY_TO_RUN_UPGRADE_TASKS
      All nodes have re-joined the cluster with a higher build number. All nodes are on the same build number. The upgrade is ready to be approved and the upgrade tasks can be run after approval.
    • RUNNING_UPGRADE_TASKS

      public static final UpgradeState RUNNING_UPGRADE_TASKS
      The delayed upgrade tasks are currently running on a node. Once this is done the state will switch back to STABLE.
    • UPGRADE_TASKS_FAILED

      public static final UpgradeState UPGRADE_TASKS_FAILED
      Running the upgrade tasks has failed. Errors have to be acknowledged before the state can transition back to READY_TO_RUN_UPGRADE_TASKS.
  • Method Details

    • values

      public static UpgradeState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UpgradeState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null