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 aCoherence
instance can run in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Client
TheCoherence
instance should run as a non-cluster member Extend client.ClientFixed
TheCoherence
instance should run as a non-cluster member Extend client, configured with a fixed address and port.ClusterMember
TheCoherence
instance should run as a cluster member client.Gar
TheCoherence
instance has been created from a gar.Grpc
TheCoherence
instance should run as a non-cluster member gRPC client.GrpcFixed
TheCoherence
instance 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.Mode
fromClientName(String sClient)
Return theCoherence.Mode
for the given client name.String
getClient()
Returns the defaultcoherence.client
property.boolean
isClusterMember()
Returntrue
if this mode is a cluster member.static Coherence.Mode
valueOf(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
TheCoherence
instance 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
TheCoherence
instance should run as a non-cluster member Extend client, configured with a fixed address and port.
-
ClusterMember
public static final Coherence.Mode ClusterMember
TheCoherence
instance should run as a cluster member client.
-
Grpc
public static final Coherence.Mode Grpc
TheCoherence
instance 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
TheCoherence
instance should run as a non-cluster member gRPC client, configured with a fixed address and port.
-
Gar
public static final Coherence.Mode Gar
TheCoherence
instance 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.client
property.- Returns:
- the default
coherence.client
property
-
isClusterMember
public boolean isClusterMember()
Returntrue
if this mode is a cluster member.- Returns:
true
if this mode is a cluster member
-
fromClientName
public static Coherence.Mode fromClientName(String sClient)
Return theCoherence.Mode
for the given client name.- Parameters:
sClient
- the client name- Returns:
- the
Coherence.Mode
for the given client name - Throws:
IllegalArgumentException
- – if specified client name does not match anyCoherence.Mode
-
-