public class DiscoveryStrategyConfig extends Object implements IdentifiedDataSerializable
DiscoveryStrategy
based on a parsed XML or configured manually using the config APIConstructor and Description |
---|
DiscoveryStrategyConfig() |
DiscoveryStrategyConfig(DiscoveryStrategyConfig config) |
DiscoveryStrategyConfig(DiscoveryStrategyFactory discoveryStrategyFactory) |
DiscoveryStrategyConfig(DiscoveryStrategyFactory discoveryStrategyFactory,
Map<String,Comparable> properties) |
DiscoveryStrategyConfig(String className) |
DiscoveryStrategyConfig(String className,
Map<String,Comparable> properties) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
Comparable value) |
String |
getClassName() |
DiscoveryStrategyFactory |
getDiscoveryStrategyFactory() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Map<String,Comparable> |
getProperties() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
removeProperty(String key) |
DiscoveryStrategyConfig |
setClassName(String className) |
DiscoveryStrategyConfig |
setDiscoveryStrategyFactory(DiscoveryStrategyFactory discoveryStrategyFactory) |
DiscoveryStrategyConfig |
setProperties(Map<String,Comparable> properties) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public DiscoveryStrategyConfig()
public DiscoveryStrategyConfig(String className)
public DiscoveryStrategyConfig(String className, Map<String,Comparable> properties)
public DiscoveryStrategyConfig(DiscoveryStrategyFactory discoveryStrategyFactory)
public DiscoveryStrategyConfig(DiscoveryStrategyFactory discoveryStrategyFactory, Map<String,Comparable> properties)
public DiscoveryStrategyConfig(DiscoveryStrategyConfig config)
public String getClassName()
public DiscoveryStrategyConfig setClassName(String className)
public DiscoveryStrategyConfig setDiscoveryStrategyFactory(DiscoveryStrategyFactory discoveryStrategyFactory)
public DiscoveryStrategyFactory getDiscoveryStrategyFactory()
public void addProperty(String key, Comparable value)
public void removeProperty(String key)
public DiscoveryStrategyConfig setProperties(Map<String,Comparable> properties)
public Map<String,Comparable> getProperties()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
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 © 2022 Hazelcast, Inc.. All Rights Reserved.