Package com.hazelcast.config
Enum InstanceTrackingConfig.InstanceMode
- java.lang.Object
-
- java.lang.Enum<InstanceTrackingConfig.InstanceMode>
-
- com.hazelcast.config.InstanceTrackingConfig.InstanceMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InstanceTrackingConfig.InstanceMode>
- Enclosing class:
- InstanceTrackingConfig
public static enum InstanceTrackingConfig.InstanceMode extends java.lang.Enum<InstanceTrackingConfig.InstanceMode>
The mode in which this instance is running.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getModeName()
Returns the string representation of the instance mode name.static InstanceTrackingConfig.InstanceMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InstanceTrackingConfig.InstanceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final InstanceTrackingConfig.InstanceMode SERVER
This instance was started using thestart.sh
orstart.bat
scripts.
-
CLIENT
public static final InstanceTrackingConfig.InstanceMode CLIENT
This instance is a Hazelcast client instance.
-
EMBEDDED
public static final InstanceTrackingConfig.InstanceMode EMBEDDED
This instance is embedded in another Java program.
-
-
Method Detail
-
values
public static InstanceTrackingConfig.InstanceMode[] 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 (InstanceTrackingConfig.InstanceMode c : InstanceTrackingConfig.InstanceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceTrackingConfig.InstanceMode 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
-
getModeName
public java.lang.String getModeName()
Returns the string representation of the instance mode name.
-
-