public abstract class TcpDiscoveryIpFinderAdapter extends Object implements TcpDiscoveryIpFinder
| Modifier and Type | Field and Description |
|---|---|
protected Ignite |
ignite
Deprecated.
Since 2.8. May contain an invalid Ignite instance when multiple nodes shares same
TcpDiscoveryIpFinder 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()
Deprecated.
Since 2.8. May return incorrect value if client and server nodes shares same
TcpDiscoveryIpFinder instance. |
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. |
TcpDiscoveryIpFinderAdapter |
setShared(boolean shared)
Sets shared flag.
|
protected IgniteSpiContext |
spiContext() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRegisteredAddresses, registerAddresses, unregisterAddresses@Deprecated @IgniteInstanceResource @GridToStringExclude protected Ignite ignite
TcpDiscoveryIpFinder instance.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 this property is set to true then IP finder allows to add and remove
addresses in runtime and this is how, for example, IP finder should work in
Amazon EC2 environment or any other environment where IPs may not be known beforehand.
If this property is set to false then IP finder is immutable and all the addresses
should be listed in configuration before Ignite start. This is the most use case for IP finders
local to current VM. Since, usually such IP finders are created per each Ignite instance and
all the known IPs are listed right away, but there is also an option to make such IP finders shared
by setting this property to true and literally share it between local VM Ignite instances.
This way user does not have to list any IPs before start, instead all starting nodes add their addresses
to the finder, then get the registered addresses and continue with discovery procedure.
isShared in interface TcpDiscoveryIpFindertrue if IP finder is shared.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryIpFinderAdapter 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.this for chaining.public void close()
close in interface TcpDiscoveryIpFinder@Deprecated protected boolean discoveryClientMode()
TcpDiscoveryIpFinder instance.True if TCP discovery works in client mode.protected IgniteSpiContext spiContext()
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025