Package com.arcadedb.server.ha
Enum HAServer.ELECTION_STATUS
- java.lang.Object
-
- java.lang.Enum<HAServer.ELECTION_STATUS>
-
- com.arcadedb.server.ha.HAServer.ELECTION_STATUS
-
- All Implemented Interfaces:
Serializable
,Comparable<HAServer.ELECTION_STATUS>
- Enclosing class:
- HAServer
public static enum HAServer.ELECTION_STATUS extends Enum<HAServer.ELECTION_STATUS>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DONE
LEADER_WAITING_FOR_QUORUM
VOTING_FOR_ME
VOTING_FOR_OTHERS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HAServer.ELECTION_STATUS
valueOf(String name)
Returns the enum constant of this type with the specified name.static HAServer.ELECTION_STATUS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DONE
public static final HAServer.ELECTION_STATUS DONE
-
VOTING_FOR_ME
public static final HAServer.ELECTION_STATUS VOTING_FOR_ME
-
VOTING_FOR_OTHERS
public static final HAServer.ELECTION_STATUS VOTING_FOR_OTHERS
-
LEADER_WAITING_FOR_QUORUM
public static final HAServer.ELECTION_STATUS LEADER_WAITING_FOR_QUORUM
-
-
Method Detail
-
values
public static HAServer.ELECTION_STATUS[] 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 (HAServer.ELECTION_STATUS c : HAServer.ELECTION_STATUS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HAServer.ELECTION_STATUS valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-