Class MulticastDiscoveryStrategy
java.lang.Object
com.hazelcast.spi.discovery.AbstractDiscoveryStrategy
com.hazelcast.spi.discovery.multicast.MulticastDiscoveryStrategy
- All Implemented Interfaces:
DiscoveryStrategy
The multicast
DiscoveryStrategy
.-
Constructor Summary
ConstructorDescriptionMulticastDiscoveryStrategy
(ILogger logger, Map<String, Comparable> properties) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of all discovered nodes based on the defined properties that were used to create theDiscoveryStrategy
instance.void
start()
Thestart
method is used to initialize internal state and perform any kind of startup procedure like multicast socket creation.Methods inherited from class com.hazelcast.spi.discovery.AbstractDiscoveryStrategy
destroy, discoverLocalMetadata, getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getPartitionGroupStrategy, getPartitionGroupStrategy, getProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hazelcast.spi.discovery.DiscoveryStrategy
getUnhealthyEndpoints, markEndpointAsUnhealthy
-
Constructor Details
-
MulticastDiscoveryStrategy
-
-
Method Details
-
start
public void start()Description copied from interface:DiscoveryStrategy
Thestart
method is used to initialize internal state and perform any kind of startup procedure like multicast socket creation. The behavior of this method might change based on theDiscoveryNode
instance passed to theDiscoveryStrategyFactory
.- Specified by:
start
in interfaceDiscoveryStrategy
- Overrides:
start
in classAbstractDiscoveryStrategy
-
discoverNodes
Description copied from interface:DiscoveryStrategy
Returns a set of all discovered nodes based on the defined properties that were used to create theDiscoveryStrategy
instance.- Returns:
- a set of all discovered nodes
-