public interface GridTcpDiscoveryIpFinder
GridTcpDiscoverySpi.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this IP finder and releases any system resources associated with it.
|
Collection<InetSocketAddress> |
getRegisteredAddresses()
Gets all addresses registered in this finder.
|
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 |
registerAddresses(Collection<InetSocketAddress> addrs)
Registers new addresses.
|
void |
unregisterAddresses(Collection<InetSocketAddress> addrs)
Unregisters provided addresses.
|
void onSpiContextInitialized(GridSpiContext spiCtx) throws GridSpiException
GridTcpDiscoverySpi.spiStart(String)
method is completed, SPI context can be stored for future access.spiCtx - Spi context.GridSpiException - In case of error.void onSpiContextDestroyed()
void initializeLocalAddresses(Collection<InetSocketAddress> addrs) throws GridSpiException
addrs - Addresses discovery SPI binds to.GridSpiException - In case of error.Collection<InetSocketAddress> getRegisteredAddresses() throws GridSpiException
null.GridSpiException - In case of error.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.
true if IP finder is shared.void registerAddresses(Collection<InetSocketAddress> addrs) throws GridSpiException
Implementation should accept duplicates quietly, but should not register address if it is already registered.
addrs - Addresses to register. Not null and not empty.GridSpiException - In case of error.void unregisterAddresses(Collection<InetSocketAddress> addrs) throws GridSpiException
Implementation should accept addresses that are currently not registered quietly (just no-op).
addrs - Addresses to unregister. Not null and not empty.GridSpiException - In case of error.void close()
Copyright © 2014. All rights reserved.