public enum ReplicationSelector extends Enum<ReplicationSelector>
Enum constants identifying the conditions where service replication may be enabled.
Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationSelector |
fromString(String s)
Get a
ReplicationSelector 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.
|
public static final ReplicationSelector ALWAYS
Enum constant indicating that a service should always be replicated.
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.
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.
public static ReplicationSelector[] values()
for (ReplicationSelector c : ReplicationSelector.values()) System.out.println(c);
public static ReplicationSelector valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ReplicationSelector fromString(String s)
Get a ReplicationSelector
enum from its string representation.
s
- the string representation of a ReplicationSelector
enum (case insensitive).ReplicationSelector
enum, or null
if the string was not recognised.