public static enum MastershipEvent.Type extends java.lang.Enum<MastershipEvent.Type>
Enum Constant and Description |
---|
BACKUPS_CHANGED
Signifies that the list of backup nodes has changed.
|
MASTER_CHANGED
Signifies that the master for a device has changed.
|
SUSPENDED
Signifies that the underlying storage for the Mastership state
of this device is unavailable.
|
Modifier and Type | Method and Description |
---|---|
static MastershipEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MastershipEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MastershipEvent.Type MASTER_CHANGED
public static final MastershipEvent.Type BACKUPS_CHANGED
public static final MastershipEvent.Type SUSPENDED
public static MastershipEvent.Type[] values()
for (MastershipEvent.Type c : MastershipEvent.Type.values()) System.out.println(c);
public static MastershipEvent.Type 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 null