public enum HaOrderType extends Enum<HaOrderType>
Enum Constant and Description |
---|
BEMASTER
Implies that the node should be master in the cluster
|
BENONE
Implies that the node should be removed from the cluster
|
BERELAY
Implies that the slave node should be a relay for other slaves
|
BESLAVE
Implies that the node should be slave in the cluster
|
GETSTATUS
Retrieving node status information
|
SLAVE_DEAD
Reporting slave node as dead
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Get integer value representing this enum
|
static HaOrderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HaOrderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HaOrderType BEMASTER
public static final HaOrderType BENONE
public static final HaOrderType BERELAY
public static final HaOrderType BESLAVE
public static final HaOrderType GETSTATUS
public static final HaOrderType SLAVE_DEAD
public int getValue()
public static HaOrderType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static HaOrderType[] values()
for (HaOrderType c : HaOrderType.values()) System.out.println(c);