public class DiscoveryConfig extends Object
Modifier | Constructor and Description |
---|---|
|
DiscoveryConfig() |
protected |
DiscoveryConfig(DiscoveryServiceProvider discoveryServiceProvider,
NodeFilter nodeFilter,
String nodeFilterClass,
Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs) |
Modifier and Type | Method and Description |
---|---|
void |
addDiscoveryStrategyConfig(DiscoveryStrategyConfig discoveryStrategyConfig)
Adds an enabled
DiscoveryStrategy
configuration. |
DiscoveryConfig |
getAsReadOnly() |
DiscoveryServiceProvider |
getDiscoveryServiceProvider() |
Collection<DiscoveryStrategyConfig> |
getDiscoveryStrategyConfigs()
Returns the defined
DiscoveryStrategy
configurations. |
NodeFilter |
getNodeFilter() |
String |
getNodeFilterClass() |
boolean |
isEnabled() |
void |
setDiscoveryServiceProvider(DiscoveryServiceProvider discoveryServiceProvider) |
void |
setDiscoveryStrategyConfigs(List<DiscoveryStrategyConfig> discoveryStrategyConfigs) |
void |
setNodeFilter(NodeFilter nodeFilter) |
void |
setNodeFilterClass(String nodeFilterClass) |
public DiscoveryConfig()
protected DiscoveryConfig(DiscoveryServiceProvider discoveryServiceProvider, NodeFilter nodeFilter, String nodeFilterClass, Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs)
public DiscoveryConfig getAsReadOnly()
public void setDiscoveryServiceProvider(DiscoveryServiceProvider discoveryServiceProvider)
public DiscoveryServiceProvider getDiscoveryServiceProvider()
public NodeFilter getNodeFilter()
public void setNodeFilter(NodeFilter nodeFilter)
public String getNodeFilterClass()
public void setNodeFilterClass(String nodeFilterClass)
public boolean isEnabled()
public Collection<DiscoveryStrategyConfig> getDiscoveryStrategyConfigs()
DiscoveryStrategy
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 Config
instances.DiscoveryStrategy
configurationspublic void setDiscoveryStrategyConfigs(List<DiscoveryStrategyConfig> discoveryStrategyConfigs)
public void addDiscoveryStrategyConfig(DiscoveryStrategyConfig discoveryStrategyConfig)
DiscoveryStrategy
configuration.
All added configurations are strictly meant to be enabled, this is to
remember when building custom Config
instances.discoveryStrategyConfig
- Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.