public class MulticastDiscoveryStrategy extends AbstractDiscoveryStrategy
DiscoveryStrategy
.Constructor and Description |
---|
MulticastDiscoveryStrategy(DiscoveryNode discoveryNode,
ILogger logger,
Map<String,Comparable> properties) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
The
stop method is used to stop internal services, sockets or to destroy any
kind of internal state. |
Iterable<DiscoveryNode> |
discoverNodes()
Returns a set of all discovered nodes based on the defined properties that were used
to create the
DiscoveryStrategy instance. |
PartitionGroupStrategy |
getPartitionGroupStrategy()
Returns a custom implementation of a
PartitionGroupStrategy to override
default behavior of zone aware backup strategies PartitionGroupMetaData
or to provide a specific behavior in case the discovery environment does not provide
information about the infrastructure to be used for automatic configuration. |
void |
start()
The
start method is used to initialize internal state and perform any kind of
startup procedure like multicast socket creation. |
discoverLocalMetadata, getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getProperties
public MulticastDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String,Comparable> properties)
public void start()
DiscoveryStrategy
start
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 the DiscoveryNode
instance passed to the DiscoveryStrategyFactory
.start
in interface DiscoveryStrategy
start
in class AbstractDiscoveryStrategy
public Iterable<DiscoveryNode> discoverNodes()
DiscoveryStrategy
DiscoveryStrategy
instance.public void destroy()
DiscoveryStrategy
stop
method is used to stop internal services, sockets or to destroy any
kind of internal state.destroy
in interface DiscoveryStrategy
destroy
in class AbstractDiscoveryStrategy
public PartitionGroupStrategy getPartitionGroupStrategy()
DiscoveryStrategy
PartitionGroupStrategy
to override
default behavior of zone aware backup strategies PartitionGroupMetaData
or to provide a specific behavior in case the discovery environment does not provide
information about the infrastructure to be used for automatic configuration.getPartitionGroupStrategy
in interface DiscoveryStrategy
getPartitionGroupStrategy
in class AbstractDiscoveryStrategy
PartitionGroupStrategy
otherwise null
in case of the default implementation is to be usedCopyright © 2023 Hazelcast, Inc.. All rights reserved.