Package com.hazelcast.config
Class DiscoveryConfig
java.lang.Object
com.hazelcast.config.DiscoveryConfig
This configuration class describes the top-level config of the discovery
SPI and its discovery strategies.
-
Constructor Summary
ModifierConstructorDescriptionDiscoveryConfig
(DiscoveryConfig discoveryConfig) protected
DiscoveryConfig
(DiscoveryServiceProvider discoveryServiceProvider, NodeFilter nodeFilter, String nodeFilterClass, Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs) -
Method Summary
Modifier and TypeMethodDescriptionaddDiscoveryStrategyConfig
(DiscoveryStrategyConfig discoveryStrategyConfig) Adds an enabledDiscoveryStrategy
configuration.boolean
Returns the definedDiscoveryStrategy
configurations.int
hashCode()
boolean
setDiscoveryServiceProvider
(DiscoveryServiceProvider discoveryServiceProvider) setDiscoveryStrategyConfigs
(List<DiscoveryStrategyConfig> discoveryStrategyConfigs) Sets the strategy configurations for this discovery config.setNodeFilter
(NodeFilter nodeFilter) setNodeFilterClass
(String nodeFilterClass) toString()
-
Constructor Details
-
DiscoveryConfig
public DiscoveryConfig() -
DiscoveryConfig
protected DiscoveryConfig(DiscoveryServiceProvider discoveryServiceProvider, NodeFilter nodeFilter, String nodeFilterClass, Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs) -
DiscoveryConfig
-
-
Method Details
-
setDiscoveryServiceProvider
public DiscoveryConfig setDiscoveryServiceProvider(DiscoveryServiceProvider discoveryServiceProvider) -
getDiscoveryServiceProvider
-
getNodeFilter
-
setNodeFilter
-
getNodeFilterClass
-
setNodeFilterClass
-
isEnabled
public boolean isEnabled() -
getDiscoveryStrategyConfigs
Returns the definedDiscoveryStrategy
configurations. This collection does not include deactivated configurations since those are automatically skipped while reading the configuration file.All returned configurations are expected to be active, this is to remember when building custom
ClientConfig
instances.- Returns:
- all enabled
DiscoveryStrategy
configurations
-
setDiscoveryStrategyConfigs
public DiscoveryConfig setDiscoveryStrategyConfigs(List<DiscoveryStrategyConfig> discoveryStrategyConfigs) Sets the strategy configurations for this discovery config.- Parameters:
discoveryStrategyConfigs
- the strategy configurations- Returns:
- this configuration
-
addDiscoveryStrategyConfig
Adds an enabledDiscoveryStrategy
configuration.All added configurations are strictly meant to be enabled, this is to remember when building custom
ClientConfig
instances.- Parameters:
discoveryStrategyConfig
- theDiscoveryStrategyConfig
to add- Returns:
- this configuration
-
toString
-
equals
-
hashCode
public int hashCode()
-