Package com.tangosol.net
Enum Coherence.Mode
- java.lang.Object
-
- java.lang.Enum<Coherence.Mode>
-
- com.tangosol.net.Coherence.Mode
-
- All Implemented Interfaces:
Serializable,Comparable<Coherence.Mode>
- Enclosing class:
- Coherence
public static enum Coherence.Mode extends Enum<Coherence.Mode>
An enum representing the different modes that aCoherenceinstance can run in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ClientTheCoherenceinstance should run as a non-cluster member Extend client.ClientFixedTheCoherenceinstance should run as a non-cluster member Extend client, configured with a fixed address and port.ClusterMemberTheCoherenceinstance should run as a cluster member client.GarTheCoherenceinstance has been created from a gar.GrpcTheCoherenceinstance should run as a non-cluster member gRPC client.GrpcFixedTheCoherenceinstance should run as a non-cluster member gRPC client, configured with a fixed address and port.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Coherence.ModefromClientName(String sClient)Return theCoherence.Modefor the given client name.StringgetClient()Returns the defaultcoherence.clientproperty.booleanisClusterMember()Returntrueif this mode is a cluster member.static Coherence.ModevalueOf(String name)Returns the enum constant of this type with the specified name.static Coherence.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Client
public static final Coherence.Mode Client
TheCoherenceinstance should run as a non-cluster member Extend client. The proxy will be discovered using the name service.
-
ClientFixed
public static final Coherence.Mode ClientFixed
TheCoherenceinstance should run as a non-cluster member Extend client, configured with a fixed address and port.
-
ClusterMember
public static final Coherence.Mode ClusterMember
TheCoherenceinstance should run as a cluster member client.
-
Grpc
public static final Coherence.Mode Grpc
TheCoherenceinstance should run as a non-cluster member gRPC client. The proxy will be discovered using the name service.
-
GrpcFixed
public static final Coherence.Mode GrpcFixed
TheCoherenceinstance should run as a non-cluster member gRPC client, configured with a fixed address and port.
-
Gar
public static final Coherence.Mode Gar
TheCoherenceinstance has been created from a gar.
-
-
Method Detail
-
values
public static Coherence.Mode[] 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 (Coherence.Mode c : Coherence.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Coherence.Mode 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
-
getClient
public String getClient()
Returns the defaultcoherence.clientproperty.- Returns:
- the default
coherence.clientproperty
-
isClusterMember
public boolean isClusterMember()
Returntrueif this mode is a cluster member.- Returns:
trueif this mode is a cluster member
-
fromClientName
public static Coherence.Mode fromClientName(String sClient)
Return theCoherence.Modefor the given client name.- Parameters:
sClient- the client name- Returns:
- the
Coherence.Modefor the given client name - Throws:
IllegalArgumentException- – if specified client name does not match anyCoherence.Mode
-
-