Package com.hazelcast.config
Class DiscoveryStrategyConfig
java.lang.Object
com.hazelcast.config.DiscoveryStrategyConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
This configuration class describes a
DiscoveryStrategy
based on a parsed XML or configured manually using the config API-
Constructor Summary
ConstructorDescriptionDiscoveryStrategyConfig
(DiscoveryStrategyFactory discoveryStrategyFactory) DiscoveryStrategyConfig
(DiscoveryStrategyFactory discoveryStrategyFactory, Map<String, Comparable> properties) DiscoveryStrategyConfig
(String className) DiscoveryStrategyConfig
(String className, Map<String, Comparable> properties) -
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String key, Comparable value) boolean
int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.int
hashCode()
void
Reads fields from the input streamremoveProperty
(String key) setClassName
(String className) setDiscoveryStrategyFactory
(DiscoveryStrategyFactory discoveryStrategyFactory) setProperties
(Map<String, Comparable> properties) toString()
void
Writes object fields to output stream
-
Constructor Details
-
DiscoveryStrategyConfig
public DiscoveryStrategyConfig() -
DiscoveryStrategyConfig
-
DiscoveryStrategyConfig
-
DiscoveryStrategyConfig
-
DiscoveryStrategyConfig
public DiscoveryStrategyConfig(DiscoveryStrategyFactory discoveryStrategyFactory, Map<String, Comparable> properties) -
DiscoveryStrategyConfig
-
-
Method Details
-
getClassName
-
setClassName
-
setDiscoveryStrategyFactory
public DiscoveryStrategyConfig setDiscoveryStrategyFactory(@Nonnull DiscoveryStrategyFactory discoveryStrategyFactory) -
getDiscoveryStrategyFactory
-
addProperty
-
removeProperty
-
setProperties
-
getProperties
-
toString
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
equals
-
hashCode
public int hashCode()
-