public abstract class GridTcpDiscoveryIpFinderAdapter extends Object implements GridTcpDiscoveryIpFinder
| Constructor and Description |
|---|
GridTcpDiscoveryIpFinderAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this IP finder and releases any system resources associated with it.
|
void |
initializeLocalAddresses(Collection<InetSocketAddress> addrs)
Initializes addresses discovery SPI binds to.
|
boolean |
isShared()
Checks whether IP finder is shared or not.
|
void |
setShared(boolean shared)
Sets shared flag.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegisteredAddresses, registerAddresses, unregisterAddressespublic void initializeLocalAddresses(Collection<InetSocketAddress> addrs) throws GridSpiException
initializeLocalAddresses in interface GridTcpDiscoveryIpFinderaddrs - Addresses discovery SPI binds to.GridSpiException - In case of error.public boolean isShared()
If it is shared then only coordinator can unregister addresses.
All nodes should register their address themselves, as early as possible on node start.
isShared in interface GridTcpDiscoveryIpFindertrue if IP finder is shared.@GridSpiConfiguration(optional=true) public void setShared(boolean shared)
true then it is expected that IP addresses registered
with IP finder will be seen by IP finders on all other nodes.shared - true if this IP finder is shared.public void close()
close in interface GridTcpDiscoveryIpFinder
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014