Enum ReplicationSelector
- java.lang.Object
-
- java.lang.Enum<ReplicationSelector>
-
- com.opencloud.rhino.management.service.ReplicationSelector
-
- All Implemented Interfaces:
Serializable
,Comparable<ReplicationSelector>
public enum ReplicationSelector extends Enum<ReplicationSelector>
Enum constants identifying the conditions where service replication may be enabled.
- Since:
- Rhino 2.6.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Enum constant indicating that a service should always be replicated.KEYVALUESTORE
Enum constant indicating that a service should be replicated if installed in a namespace that utilises a key/value store to persist application state.SAVANNA
Enum constant indicating that a service should be replicated if installed in a namespace that replicates application state over the legacy savanna framework.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicationSelector
fromString(String s)
Get aReplicationSelector
enum from its string representation.static ReplicationSelector
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReplicationSelector[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final ReplicationSelector ALWAYS
Enum constant indicating that a service should always be replicated.
- Since:
- Rhino 2.6.1
-
SAVANNA
public static final ReplicationSelector SAVANNA
Enum constant indicating that a service should be replicated if installed in a namespace that replicates application state over the legacy savanna framework.
- Since:
- Rhino 2.6.1
-
KEYVALUESTORE
public static final ReplicationSelector KEYVALUESTORE
Enum constant indicating that a service should be replicated if installed in a namespace that utilises a key/value store to persist application state.
- Since:
- Rhino 2.6.1
-
-
Method Detail
-
values
public static ReplicationSelector[] 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 (ReplicationSelector c : ReplicationSelector.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReplicationSelector 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
-
fromString
public static ReplicationSelector fromString(String s)
Get a
ReplicationSelector
enum from its string representation.- Parameters:
s
- the string representation of aReplicationSelector
enum (case insensitive).- Returns:
- the corresponding
ReplicationSelector
enum, ornull
if the string was not recognised.
-
-