public class JCloudsDiscoveryStrategyFactory extends Object implements DiscoveryStrategyFactory
JCloudsDiscoveryStrategy
to Discovery SPIConstructor and Description |
---|
JCloudsDiscoveryStrategyFactory() |
Modifier and Type | Method and Description |
---|---|
Collection<PropertyDefinition> |
getConfigurationProperties()
Returns a set of the expected configuration properties.
|
Class<? extends DiscoveryStrategy> |
getDiscoveryStrategyType()
Returns the type of the
DiscoveryStrategy itself. |
DiscoveryStrategy |
newDiscoveryStrategy(DiscoveryNode node,
ILogger logger,
Map<String,Comparable> properties)
Instantiates a new instance of the
DiscoveryStrategy with the given configuration
properties. |
public Class<? extends DiscoveryStrategy> getDiscoveryStrategyType()
DiscoveryStrategyFactory
DiscoveryStrategy
itself.getDiscoveryStrategyType
in interface DiscoveryStrategyFactory
public DiscoveryStrategy newDiscoveryStrategy(DiscoveryNode node, ILogger logger, Map<String,Comparable> properties)
DiscoveryStrategyFactory
DiscoveryStrategy
with the given configuration
properties. The provided HazelcastInstance
can be used to register instances in
a service registry whenever the discovery strategy is started.newDiscoveryStrategy
in interface DiscoveryStrategyFactory
node
- the current local DiscoveryNode, representing the local
connection information if running on a Hazelcast member, otherwise on
Hazelcast clients always nulllogger
- the logger instanceproperties
- the properties parsed from the configurationpublic Collection<PropertyDefinition> getConfigurationProperties()
DiscoveryStrategyFactory
getConfigurationProperties
in interface DiscoveryStrategyFactory
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.