public class DefaultDiscoveryService extends Object implements DiscoveryService
Constructor and Description |
---|
DefaultDiscoveryService(DiscoveryServiceSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
The start method is called on system startup to implement simple
lifecycle management.
|
Iterable<DiscoveryNode> |
discoverNodes()
Returns a discovered and filtered, if a
NodeFilter is setup, set of
discovered nodes to connect to. |
void |
start()
The start method is called on system startup to implement simple
lifecycle management.
|
public DefaultDiscoveryService(DiscoveryServiceSettings settings)
public void start()
DiscoveryService
DiscoveryStrategy.start()
on all discovered and start up strategies.start
in interface DiscoveryService
public Iterable<DiscoveryNode> discoverNodes()
DiscoveryService
NodeFilter
is setup, set of
discovered nodes to connect to.discoverNodes
in interface DiscoveryService
public void destroy()
DiscoveryService
DiscoveryStrategy.destroy()
on all discovered and destroy strategies
before the service itself will be destroyed.destroy
in interface DiscoveryService
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.