Package com.atlassian.jira.cluster.zdu
Enum Class UpgradeState
- All Implemented Interfaces:
Serializable
,Comparable<UpgradeState>
,Constable
This defines which state the cluster is currently operating in.
- Since:
- 7.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAt least one node has been upgraded and re-joined the cluster with a higher build number.All nodes have re-joined the cluster with a higher build number.Cluster nodes are ready to be brought down and upgraded.The delayed upgrade tasks are currently running on a node.Stable state.Running the upgrade tasks has failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeState
Returns the enum constant of this class with the specified name.static UpgradeState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STABLE
Stable state. This is the default state that the cluster is in when there are no upgrades taking place. -
READY_TO_UPGRADE
Cluster nodes are ready to be brought down and upgraded. -
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
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
The delayed upgrade tasks are currently running on a node. Once this is done the state will switch back toSTABLE
. -
UPGRADE_TASKS_FAILED
Running the upgrade tasks has failed. Errors have to be acknowledged before the state can transition back toREADY_TO_RUN_UPGRADE_TASKS
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-