public abstract class TcpDiscoveryIpFinderAdapter extends Object implements TcpDiscoveryIpFinder
| Modifier and Type | Field and Description |
|---|---|
protected Ignite |
ignite
Ignite instance .
|
| Constructor and Description |
|---|
TcpDiscoveryIpFinderAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this IP finder and releases any system resources associated with it.
|
protected boolean |
discoveryClientMode() |
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, waitgetRegisteredAddresses, registerAddresses, unregisterAddresses@IgniteInstanceResource @GridToStringExclude protected Ignite ignite
public void onSpiContextInitialized(IgniteSpiContext spiCtx) throws IgniteSpiException
TcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access.onSpiContextInitialized in interface TcpDiscoveryIpFinderspiCtx - Spi context.IgniteSpiException - In case of error.public void onSpiContextDestroyed()
onSpiContextDestroyed in interface TcpDiscoveryIpFinderpublic void initializeLocalAddresses(Collection<InetSocketAddress> addrs) throws IgniteSpiException
initializeLocalAddresses in interface TcpDiscoveryIpFinderaddrs - 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 TcpDiscoveryIpFindertrue 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 TcpDiscoveryIpFinderprotected boolean discoveryClientMode()
True if TCP discovery works in client mode.protected IgniteSpiContext spiContext()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016