Package com.arcadedb.server.ha
Enum HAServer.SERVER_ROLE
- java.lang.Object
-
- java.lang.Enum<HAServer.SERVER_ROLE>
-
- com.arcadedb.server.ha.HAServer.SERVER_ROLE
-
- All Implemented Interfaces:
Serializable
,Comparable<HAServer.SERVER_ROLE>
- Enclosing class:
- HAServer
public static enum HAServer.SERVER_ROLE extends Enum<HAServer.SERVER_ROLE>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HAServer.SERVER_ROLE
valueOf(String name)
Returns the enum constant of this type with the specified name.static HAServer.SERVER_ROLE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final HAServer.SERVER_ROLE ANY
-
REPLICA
public static final HAServer.SERVER_ROLE REPLICA
-
-
Method Detail
-
values
public static HAServer.SERVER_ROLE[] 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.SERVER_ROLE c : HAServer.SERVER_ROLE.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.SERVER_ROLE 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
-
-