Package com.hazelcast.spi.discovery
Enum Class DiscoveryStrategyFactory.DiscoveryStrategyLevel
java.lang.Object
java.lang.Enum<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
com.hazelcast.spi.discovery.DiscoveryStrategyFactory.DiscoveryStrategyLevel
- All Implemented Interfaces:
Serializable
,Comparable<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
,Constable
- Enclosing interface:
- DiscoveryStrategyFactory
public static enum DiscoveryStrategyFactory.DiscoveryStrategyLevel
extends Enum<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
Level of the discovery strategy.
Discovery strategies can have different levels. They can be at the level of Cloud Virtual Machines, for example, AWS EC2 Instance or GCP Virtual Machine. They can also be at the level of some specific platform or framework, like Kubernetes.
It decides on the priority in the auto-detection mechanism. As an example, let's take Kubernetes environment installed on AWS EC2 instances. In this case two plugins are auto-detected: hazelcast-aws and hazelcast-kubernetes. This level decides which one to pick:
- hazelcast-aws implements level
CLOUD_VM
- hazelcast-kubernetes implements level
PLATFORM
PLATFORM
has higher priority than CLOUD_VM
, so hazelcast-kubernetes plugin is selected.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Level unknown, lowest priority. -
CLOUD_VM
VM Machine level, for example, hazelcast-aws or hazelcast-azure. -
PLATFORM
Platform level, for example, hazelcast-kubernetes. -
CUSTOM
Custom strategy level, highest priority.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getPriority
public int getPriority()
-