Package com.hazelcast.config
Enum InstanceTrackingConfig.InstanceTrackingProperties
- java.lang.Object
-
- java.lang.Enum<InstanceTrackingConfig.InstanceTrackingProperties>
-
- com.hazelcast.config.InstanceTrackingConfig.InstanceTrackingProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InstanceTrackingConfig.InstanceTrackingProperties>
- Enclosing class:
- InstanceTrackingConfig
public static enum InstanceTrackingConfig.InstanceTrackingProperties extends java.lang.Enum<InstanceTrackingConfig.InstanceTrackingProperties>
Enumeration of instance properties provided to the format pattern for output.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LICENSED
If this instance is using a license or not.MODE
The instance mode, e.g.PID
Attempts to get the process ID value.PRODUCT
The instance product name, e.g.START_TIMESTAMP
The timestamp of when the instance was started as returned bySystem.currentTimeMillis()
.VERSION
The instance version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPropertyName()
Returns the property name which can be used in placeholders to be resolved to an actual property value.static InstanceTrackingConfig.InstanceTrackingProperties
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InstanceTrackingConfig.InstanceTrackingProperties[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCT
public static final InstanceTrackingConfig.InstanceTrackingProperties PRODUCT
The instance product name, e.g. "Hazelcast" or "Hazelcast Enterprise".
-
VERSION
public static final InstanceTrackingConfig.InstanceTrackingProperties VERSION
The instance version.
-
MODE
public static final InstanceTrackingConfig.InstanceTrackingProperties MODE
The instance mode, e.g. "server", "embedded" or "client".- See Also:
InstanceTrackingConfig.InstanceMode
-
START_TIMESTAMP
public static final InstanceTrackingConfig.InstanceTrackingProperties START_TIMESTAMP
The timestamp of when the instance was started as returned bySystem.currentTimeMillis()
.
-
LICENSED
public static final InstanceTrackingConfig.InstanceTrackingProperties LICENSED
If this instance is using a license or not. The value0
signifies that there is no license set and the value1
signifies that a license is in use.
-
PID
public static final InstanceTrackingConfig.InstanceTrackingProperties PID
Attempts to get the process ID value. The algorithm does not guarantee to get the process ID on all JVMs and operating systems so please test before use. In case we are unable to get the PID, the value will be-1
.
-
-
Method Detail
-
values
public static InstanceTrackingConfig.InstanceTrackingProperties[] 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.InstanceTrackingProperties c : InstanceTrackingConfig.InstanceTrackingProperties.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.InstanceTrackingProperties 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
-
getPropertyName
public java.lang.String getPropertyName()
Returns the property name which can be used in placeholders to be resolved to an actual property value.
-
-