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 |
onSpiContextDestroyed()
Callback invoked prior to stopping grid before SPI context is destroyed.
|
void |
onSpiContextInitialized(GridSpiContext spiCtx)
Callback invoked when SPI context is initialized after
GridTcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access. |
void |
setShared(boolean shared)
Sets shared flag.
|
protected GridSpiContext |
spiContext() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegisteredAddresses, registerAddresses, unregisterAddressespublic void onSpiContextInitialized(GridSpiContext spiCtx) throws GridSpiException
GridTcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access.onSpiContextInitialized in interface GridTcpDiscoveryIpFinderspiCtx - Spi context.GridSpiException - In case of error.public void onSpiContextDestroyed()
onSpiContextDestroyed in interface GridTcpDiscoveryIpFinderpublic 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 GridTcpDiscoveryIpFinderprotected GridSpiContext spiContext()
Copyright © 2014. All rights reserved.