public abstract class TcpDiscoveryIpFinderAdapter extends Object implements TcpDiscoveryIpFinder
Constructor and Description |
---|
TcpDiscoveryIpFinderAdapter() |
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(IgniteSpiContext spiCtx)
Callback invoked when SPI context is initialized after
TcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access. |
void |
setShared(boolean shared)
Sets shared flag.
|
protected IgniteSpiContext |
spiContext() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRegisteredAddresses, registerAddresses, unregisterAddresses
public void onSpiContextInitialized(IgniteSpiContext spiCtx) throws IgniteSpiException
TcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access.onSpiContextInitialized
in interface TcpDiscoveryIpFinder
spiCtx
- Spi context.IgniteSpiException
- In case of error.public void onSpiContextDestroyed()
onSpiContextDestroyed
in interface TcpDiscoveryIpFinder
public void initializeLocalAddresses(Collection<InetSocketAddress> addrs) throws IgniteSpiException
initializeLocalAddresses
in interface TcpDiscoveryIpFinder
addrs
- Addresses discovery SPI binds to.IgniteSpiException
- 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 TcpDiscoveryIpFinder
true
if IP finder is shared.@IgniteSpiConfiguration(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 TcpDiscoveryIpFinder
protected IgniteSpiContext spiContext()
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 16 2015