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 |
---|---|
DiscoveryStrategyConfig |
addProperty(String key,
Comparable value) |
int |
getClassId()
Returns type identifier for this class.
|
String |
getClassName() |
DiscoveryStrategyFactory |
getDiscoveryStrategyFactory() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
Map<String,Comparable> |
getProperties() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
DiscoveryStrategyConfig |
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(@Nonnull String className)
public DiscoveryStrategyConfig setDiscoveryStrategyFactory(@Nonnull DiscoveryStrategyFactory discoveryStrategyFactory)
public DiscoveryStrategyFactory getDiscoveryStrategyFactory()
public DiscoveryStrategyConfig addProperty(String key, Comparable value)
public DiscoveryStrategyConfig 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 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 © 2023 Hazelcast, Inc.. All rights reserved.