Package org.teamapps.universaldb.cluster
Enum ClusterNodeState
- java.lang.Object
-
- java.lang.Enum<ClusterNodeState>
-
- org.teamapps.universaldb.cluster.ClusterNodeState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClusterNodeState>,java.lang.constant.Constable
public enum ClusterNodeState extends java.lang.Enum<ClusterNodeState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTINGELECTING_HEADERRORRUNNINGRUNNING_AS_HEADSYNCHRONIZE_SCHEMASYNCHRONIZE_TRANSACTIONSWAIT_FOR_HEADWAITING_FOR_PEER_SYNCHRONISATION
-
Method Summary
Modifier and Type Method Description static ClusterNodeStategetById(int id)intgetId()static ClusterNodeStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ClusterNodeState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTING
public static final ClusterNodeState CONNECTING
-
SYNCHRONIZE_SCHEMA
public static final ClusterNodeState SYNCHRONIZE_SCHEMA
-
SYNCHRONIZE_TRANSACTIONS
public static final ClusterNodeState SYNCHRONIZE_TRANSACTIONS
-
WAITING_FOR_PEER_SYNCHRONISATION
public static final ClusterNodeState WAITING_FOR_PEER_SYNCHRONISATION
-
ELECTING_HEAD
public static final ClusterNodeState ELECTING_HEAD
-
WAIT_FOR_HEAD
public static final ClusterNodeState WAIT_FOR_HEAD
-
RUNNING
public static final ClusterNodeState RUNNING
-
RUNNING_AS_HEAD
public static final ClusterNodeState RUNNING_AS_HEAD
-
ERROR
public static final ClusterNodeState ERROR
-
-
Method Detail
-
values
public static ClusterNodeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterNodeState 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
-
getById
public static ClusterNodeState getById(int id)
-
getId
public int getId()
-
-