public class JCloudsDiscoveryStrategy extends Object implements DiscoveryStrategy
DiscoveryStrategy| Modifier | Constructor and Description |
|---|---|
protected |
JCloudsDiscoveryStrategy(ComputeServiceBuilder computeServiceBuilder) |
|
JCloudsDiscoveryStrategy(Map<String,Comparable> properties)
Instantiates a new JCloudsDiscoveryStrategy
|
| 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.
|
void |
start()
The start method is used to initialize internal state and perform any kind of
startup procedure like multicast socket creation.
|
public JCloudsDiscoveryStrategy(Map<String,Comparable> properties)
properties - the propertiesprotected JCloudsDiscoveryStrategy(ComputeServiceBuilder computeServiceBuilder)
public void start()
DiscoveryStrategyDiscoveryNode instance passed to the DiscoveryStrategyFactory.start in interface DiscoveryStrategypublic Iterable<DiscoveryNode> discoverNodes()
DiscoveryStrategydiscoverNodes in interface DiscoveryStrategypublic void destroy()
DiscoveryStrategydestroy in interface DiscoveryStrategyCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.