Package com.hazelcast.spi.discovery
Enum DiscoveryStrategyFactory.DiscoveryStrategyLevel
java.lang.Object
java.lang.Enum<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
com.hazelcast.spi.discovery.DiscoveryStrategyFactory.DiscoveryStrategyLevel
- All Implemented Interfaces:
Serializable
,Comparable<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
,java.lang.constant.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
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
getPriority()
static DiscoveryStrategyFactory.DiscoveryStrategyLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static DiscoveryStrategyFactory.DiscoveryStrategyLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getPriority
public int getPriority()
-