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()
DiscoveryStrategy
DiscoveryNode
instance passed to the DiscoveryStrategyFactory
.start
in interface DiscoveryStrategy
public Iterable<DiscoveryNode> discoverNodes()
DiscoveryStrategy
discoverNodes
in interface DiscoveryStrategy
public void destroy()
DiscoveryStrategy
destroy
in interface DiscoveryStrategy
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.