public static enum DiscoveryStrategyFactory.DiscoveryStrategyLevel extends Enum<DiscoveryStrategyFactory.DiscoveryStrategyLevel>
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:
CLOUD_VM
PLATFORM
PLATFORM
has higher priority than CLOUD_VM
, so hazelcast-kubernetes plugin is selected.Enum Constant and Description |
---|
CLOUD_VM
VM Machine level, for example, hazelcast-aws or hazelcast-azure.
|
CUSTOM
Custom strategy level, highest priority.
|
PLATFORM
Platform level, for example, hazelcast-kubernetes.
|
UNKNOWN
Level unknown, lowest priority.
|
Modifier and Type | Method and 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.
|
public static final DiscoveryStrategyFactory.DiscoveryStrategyLevel UNKNOWN
public static final DiscoveryStrategyFactory.DiscoveryStrategyLevel CLOUD_VM
public static final DiscoveryStrategyFactory.DiscoveryStrategyLevel PLATFORM
public static final DiscoveryStrategyFactory.DiscoveryStrategyLevel CUSTOM
public static DiscoveryStrategyFactory.DiscoveryStrategyLevel[] values()
for (DiscoveryStrategyFactory.DiscoveryStrategyLevel c : DiscoveryStrategyFactory.DiscoveryStrategyLevel.values()) System.out.println(c);
public static DiscoveryStrategyFactory.DiscoveryStrategyLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getPriority()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.