public class DiscoveryConfig extends Object implements IdentifiedDataSerializable
Modifier | Constructor and Description |
---|---|
|
DiscoveryConfig() |
|
DiscoveryConfig(DiscoveryConfig discoveryConfig) |
protected |
DiscoveryConfig(DiscoveryServiceProvider discoveryServiceProvider,
NodeFilter nodeFilter,
String nodeFilterClass,
Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs) |
public DiscoveryConfig()
protected DiscoveryConfig(DiscoveryServiceProvider discoveryServiceProvider, NodeFilter nodeFilter, String nodeFilterClass, Collection<DiscoveryStrategyConfig> discoveryStrategyConfigs)
public DiscoveryConfig(DiscoveryConfig discoveryConfig)
public DiscoveryConfig setDiscoveryServiceProvider(DiscoveryServiceProvider discoveryServiceProvider)
public DiscoveryServiceProvider getDiscoveryServiceProvider()
public NodeFilter getNodeFilter()
public DiscoveryConfig setNodeFilter(@Nonnull NodeFilter nodeFilter)
public String getNodeFilterClass()
public DiscoveryConfig setNodeFilterClass(@Nonnull 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 DiscoveryConfig setDiscoveryStrategyConfigs(List<DiscoveryStrategyConfig> discoveryStrategyConfigs)
discoveryStrategyConfigs
- the strategy configurationspublic DiscoveryConfig 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 addpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2024 Hazelcast, Inc.. All rights reserved.