Enum StreamingServicesCoreProperties.ReplicationModes
- java.lang.Object
-
- java.lang.Enum<StreamingServicesCoreProperties.ReplicationModes>
-
- org.apereo.cas.configuration.model.support.services.stream.StreamingServicesCoreProperties.ReplicationModes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StreamingServicesCoreProperties.ReplicationModes>
- Enclosing class:
- StreamingServicesCoreProperties
public static enum StreamingServicesCoreProperties.ReplicationModes extends java.lang.Enum<StreamingServicesCoreProperties.ReplicationModes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
In this replication mode, all CAS nodes will try to sync copies of service definition files individually on each node.PASSIVE
In this replication mode, one CAS service is designated to be the master that contains all service definition files locally, and will stream changes to other CAS passive nodes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamingServicesCoreProperties.ReplicationModes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StreamingServicesCoreProperties.ReplicationModes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final StreamingServicesCoreProperties.ReplicationModes ACTIVE
In this replication mode, all CAS nodes will try to sync copies of service definition files individually on each node.
-
PASSIVE
public static final StreamingServicesCoreProperties.ReplicationModes PASSIVE
In this replication mode, one CAS service is designated to be the master that contains all service definition files locally, and will stream changes to other CAS passive nodes. Passive CAS nodes only access the replication cache to retrieve services, and will not individually keep copies of the service definition files on disk.
-
-
Method Detail
-
values
public static StreamingServicesCoreProperties.ReplicationModes[] 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 (StreamingServicesCoreProperties.ReplicationModes c : StreamingServicesCoreProperties.ReplicationModes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamingServicesCoreProperties.ReplicationModes 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
-
-