Package org.teamapps.universaldb.cluster
Enum ClusterNodeRole
- java.lang.Object
-
- java.lang.Enum<ClusterNodeRole>
-
- org.teamapps.universaldb.cluster.ClusterNodeRole
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClusterNodeRole>,java.lang.constant.Constable
public enum ClusterNodeRole extends java.lang.Enum<ClusterNodeRole>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOEXTERNALEXTERNAL_SUBSETHEADREMOTESNAPSHOT_CONSUMERSNAPSHOT_PROVIDERSTAND_ALONETRANSACTION_LOGGERWORKER
-
Method Summary
Modifier and Type Method Description booleanallowedToBecomeHead()booleanallowedToVoteForHeadSelection()ClusterNodeRolegetBootUpType()static ClusterNodeRolegetById(int id)intgetId()static ClusterNodeRolevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ClusterNodeRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STAND_ALONE
public static final ClusterNodeRole STAND_ALONE
-
AUTO
public static final ClusterNodeRole AUTO
-
HEAD
public static final ClusterNodeRole HEAD
-
WORKER
public static final ClusterNodeRole WORKER
-
SNAPSHOT_PROVIDER
public static final ClusterNodeRole SNAPSHOT_PROVIDER
-
TRANSACTION_LOGGER
public static final ClusterNodeRole TRANSACTION_LOGGER
-
REMOTE
public static final ClusterNodeRole REMOTE
-
EXTERNAL
public static final ClusterNodeRole EXTERNAL
-
EXTERNAL_SUBSET
public static final ClusterNodeRole EXTERNAL_SUBSET
-
SNAPSHOT_CONSUMER
public static final ClusterNodeRole SNAPSHOT_CONSUMER
-
-
Method Detail
-
values
public static ClusterNodeRole[] 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 ClusterNodeRole 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 ClusterNodeRole getById(int id)
-
getId
public int getId()
-
getBootUpType
public ClusterNodeRole getBootUpType()
-
allowedToVoteForHeadSelection
public boolean allowedToVoteForHeadSelection()
-
allowedToBecomeHead
public boolean allowedToBecomeHead()
-
-