public enum HaStateType extends Enum<HaStateType>
| Enum Constant and Description | 
|---|
| MASTERMASTER implies that the node is master in a HA cluster. | 
| NONENONE implies that the node is not participating in a HA cluster. | 
| SLAVESLAVE implies that the node is slave in a HA cluster. | 
| SLAVE_RELAYSLAVE_RELAY implies that the node is slave in a HA cluster,
 that may also have "sub-slaves" (after a beRelay() call). | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getValue()Get the integer value represented by this enum value. | 
| static HaStateType | valueOf(int i)Instantiates an HaStateType from an integer value. | 
| static HaStateType | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static HaStateType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final HaStateType MASTER
public static final HaStateType NONE
public static final HaStateType SLAVE
public static final HaStateType SLAVE_RELAY
public int getValue()
public static HaStateType valueOf(int i)
i - - integer value representing the HaStateTypepublic static HaStateType 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 HaStateType[] values()
for (HaStateType c : HaStateType.values()) System.out.println(c);