Package org.onosproject.upgrade
Enum UpgradeEvent.Type
- java.lang.Object
-
- java.lang.Enum<UpgradeEvent.Type>
-
- org.onosproject.upgrade.UpgradeEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UpgradeEvent.Type>
- Enclosing class:
- UpgradeEvent
@Beta public static enum UpgradeEvent.Type extends java.lang.Enum<UpgradeEvent.Type>
Type of upgrade-related events.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMITTED
Indicates that an upgrade was committed.INITIALIZED
Indicates that a new upgrade was initialized.RESET
Indicates that an upgrade was reset.ROLLED_BACK
Indicates that an upgrade was rolled back.UPGRADED
Indicates that mastership was reassigned to the upgraded cluster.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UpgradeEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UpgradeEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZED
public static final UpgradeEvent.Type INITIALIZED
Indicates that a new upgrade was initialized.
-
UPGRADED
public static final UpgradeEvent.Type UPGRADED
Indicates that mastership was reassigned to the upgraded cluster.
-
COMMITTED
public static final UpgradeEvent.Type COMMITTED
Indicates that an upgrade was committed.
-
ROLLED_BACK
public static final UpgradeEvent.Type ROLLED_BACK
Indicates that an upgrade was rolled back.
-
RESET
public static final UpgradeEvent.Type RESET
Indicates that an upgrade was reset.
-
-
Method Detail
-
values
public static UpgradeEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UpgradeEvent.Type c : UpgradeEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UpgradeEvent.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-