Package com.hazelcast.kubernetes
Class HazelcastKubernetesDiscoveryStrategyFactory
java.lang.Object
com.hazelcast.kubernetes.HazelcastKubernetesDiscoveryStrategyFactory
- All Implemented Interfaces:
DiscoveryStrategyFactory
public class HazelcastKubernetesDiscoveryStrategyFactory extends Object implements DiscoveryStrategyFactory
Just the factory to create the Kubernetes Discovery Strategy
-
Constructor Summary
Constructors Constructor Description HazelcastKubernetesDiscoveryStrategyFactory()
-
Method Summary
Modifier and Type Method Description Collection<PropertyDefinition>
getConfigurationProperties()
Returns a set of the expected configuration properties.Class<? extends DiscoveryStrategy>
getDiscoveryStrategyType()
Returns the type of theDiscoveryStrategy
itself.DiscoveryStrategy
newDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String,Comparable> properties)
Instantiates a new instance of theDiscoveryStrategy
with the given configuration properties.
-
Constructor Details
-
HazelcastKubernetesDiscoveryStrategyFactory
public HazelcastKubernetesDiscoveryStrategyFactory()
-
-
Method Details
-
getDiscoveryStrategyType
Description copied from interface:DiscoveryStrategyFactory
Returns the type of theDiscoveryStrategy
itself.- Specified by:
getDiscoveryStrategyType
in interfaceDiscoveryStrategyFactory
- Returns:
- the type of the discovery strategy
-
newDiscoveryStrategy
public DiscoveryStrategy newDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String,Comparable> properties)Description copied from interface:DiscoveryStrategyFactory
Instantiates a new instance of theDiscoveryStrategy
with the given configuration properties. The providedHazelcastInstance
can be used to register instances in a service registry whenever the discovery strategy is started.- Specified by:
newDiscoveryStrategy
in interfaceDiscoveryStrategyFactory
- Parameters:
discoveryNode
- the current localDiscoveryNode
, representing the local connection information if running on a Hazelcast member, otherwise on Hazelcast clients alwaysnull
logger
- the logger instanceproperties
- the properties parsed from the configuration- Returns:
- a new instance of the discovery strategy
-
getConfigurationProperties
Description copied from interface:DiscoveryStrategyFactory
Returns a set of the expected configuration properties. These properties contain information about the value type of the property, if it is required and a possible validator to automatically test and convert values from the XML configuration.- Specified by:
getConfigurationProperties
in interfaceDiscoveryStrategyFactory
- Returns:
- a set of expected configuration properties
-