public class MulticastDiscoveryStrategy extends AbstractDiscoveryStrategy
| 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. | 
| Map<String,Object> | discoverLocalMetadata()Returns a map with discovered metadata provided by the runtime environment. | 
| 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  PartitionGroupStrategyto override
 default behavior of zone aware backup strategiesPartitionGroupMetaDataor 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. | 
getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getPropertiespublic MulticastDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String,Comparable> properties)
public void start()
DiscoveryStrategyDiscoveryNode instance passed to the DiscoveryStrategyFactory.start in interface DiscoveryStrategystart in class AbstractDiscoveryStrategypublic Iterable<DiscoveryNode> discoverNodes()
DiscoveryStrategypublic void destroy()
DiscoveryStrategydestroy in interface DiscoveryStrategydestroy in class AbstractDiscoveryStrategypublic PartitionGroupStrategy getPartitionGroupStrategy()
DiscoveryStrategyPartitionGroupStrategy 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 DiscoveryStrategygetPartitionGroupStrategy in class AbstractDiscoveryStrategypublic Map<String,Object> discoverLocalMetadata()
DiscoveryStrategyMembers
 attributes. Existing attributes will not be overridden, that way local attribute configuration
 overrides provided metadata.
 
 The default implementation provides an empty map with no further metadata configured. Returning
 null is not permitted and will most probably result in an NullPointerException
 inside the cluster system.discoverLocalMetadata in interface DiscoveryStrategydiscoverLocalMetadata in class AbstractDiscoveryStrategyCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.