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.