@Beta public static enum Upgrade.Status extends java.lang.Enum<Upgrade.Status>
Enum Constant and Description |
---|
COMMITTED
Indicates that an upgrade has been committed.
|
COMMITTING
d
Indicates that an upgrade is being committed.
|
INACTIVE
Represents state in which no upgrade has been initialized.
|
INITIALIZED
Indicates that an upgrade has been initialized.
|
INITIALIZING
Indicates that an upgrade is being initialized.
|
RESET
Indicates that an upgrade has been reset.
|
RESETTING
Indicates that an upgrade is being reset.
|
ROLLED_BACK
Indicates that an upgrade has been rolled back.
|
ROLLING_BACK
Indicates that an upgrade is being rolled back.
|
UPGRADED
Indicates that an upgrade is complete.
|
UPGRADING
Indicates that an upgrade is in progress.
|
Modifier and Type | Method and Description |
---|---|
boolean |
active()
Returns whether the upgrade status is active.
|
boolean |
upgraded()
Returns whether the upgraded version is active.
|
static Upgrade.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Upgrade.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Upgrade.Status INACTIVE
public static final Upgrade.Status INITIALIZING
public static final Upgrade.Status INITIALIZED
public static final Upgrade.Status UPGRADING
public static final Upgrade.Status UPGRADED
public static final Upgrade.Status COMMITTING
public static final Upgrade.Status COMMITTED
public static final Upgrade.Status ROLLING_BACK
public static final Upgrade.Status ROLLED_BACK
public static final Upgrade.Status RESETTING
public static final Upgrade.Status RESET
public static Upgrade.Status[] values()
for (Upgrade.Status c : Upgrade.Status.values()) System.out.println(c);
public static Upgrade.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean active()
public boolean upgraded()