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()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
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) |
String |
toString() |
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
- the DiscoveryStrategyConfig
to addCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.