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
ConstructorsConstructorDescriptionMulticastDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String, Comparable> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Thestopmethod is used to stop internal services, sockets or to destroy any kind of internal state.Returns a set of all discovered nodes based on the defined properties that were used to create theDiscoveryStrategyinstance.voidstart()Thestartmethod 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
discoverLocalMetadata, getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getPartitionGroupStrategy, getPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hazelcast.spi.discovery.DiscoveryStrategy
getUnhealthyEndpoints, markEndpointAsUnhealthy
-
Constructor Details
-
MulticastDiscoveryStrategy
public MulticastDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String, Comparable> properties)
-
-
Method Details
-
start
public void start()Description copied from interface:DiscoveryStrategyThestartmethod 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 theDiscoveryNodeinstance passed to theDiscoveryStrategyFactory.- Specified by:
startin interfaceDiscoveryStrategy- Overrides:
startin classAbstractDiscoveryStrategy
-
discoverNodes
Description copied from interface:DiscoveryStrategyReturns a set of all discovered nodes based on the defined properties that were used to create theDiscoveryStrategyinstance.- Returns:
- a set of all discovered nodes
-
destroy
public void destroy()Description copied from interface:DiscoveryStrategyThestopmethod is used to stop internal services, sockets or to destroy any kind of internal state.- Specified by:
destroyin interfaceDiscoveryStrategy- Overrides:
destroyin classAbstractDiscoveryStrategy
-
getPartitionGroupStrategy
- Specified by:
getPartitionGroupStrategyin interfaceDiscoveryStrategy- Overrides:
getPartitionGroupStrategyin classAbstractDiscoveryStrategy- Returns:
- a custom implementation of a
PartitionGroupStrategyotherwisenullin case of the default implementation is to be used
-