public class TcpDiscoveryAlbIpFinder extends TcpDiscoveryIpFinderAdapter
For information about Amazon Application load balancer visit: aws.amazon.com.
setCredentialsProvider(AWSCredentialsProvider)
setTargetGrpARN(String)
)setRegion(String)
)The finder will fetch all nodes connected under an Application load balancer and share with its peers for cluster awareness.
Note that using AWS Application load balancer service will result in charges to your AWS account.
Choose another implementation of TcpDiscoveryIpFinder
for local
or home network tests.
Note that this finder is shared.
Note that this finder can only be used on AWS EC2 instances that belong on a Load Balancer based auto scaling group.
TcpDiscoveryElbIpFinder
ignite
Constructor and Description |
---|
TcpDiscoveryAlbIpFinder()
Creates Application load balancer IP finder instance.
|
Modifier and Type | Method and Description |
---|---|
Collection<InetSocketAddress> |
getRegisteredAddresses()
Gets all addresses registered in this finder.
|
void |
registerAddresses(Collection<InetSocketAddress> addrs)
Registers new addresses.
|
void |
setCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider credsProvider)
Sets AWS credentials provider.
|
void |
setRegion(String region)
Sets AWS Application Load Balancer's region.
|
void |
setTargetGrpARN(String targetGrpARN)
Sets AWS Application Load Balancer's target group ARN.
|
void |
unregisterAddresses(Collection<InetSocketAddress> addrs)
Unregisters provided addresses.
|
close, discoveryClientMode, initializeLocalAddresses, isShared, onSpiContextDestroyed, onSpiContextInitialized, setShared, spiContext, toString
public TcpDiscoveryAlbIpFinder()
public Collection<InetSocketAddress> getRegisteredAddresses() throws IgniteSpiException
null
.IgniteSpiException
- In case of error.@IgniteSpiConfiguration(optional=false) public void setTargetGrpARN(String targetGrpARN)
targetGrpARN
- Target group ARN attached to an AWS Application Load Balancer.@IgniteSpiConfiguration(optional=false) public void setRegion(String region)
region
- AWS Elastic Load Balancer region (e.g: us-east-1)@IgniteSpiConfiguration(optional=false) public void setCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider credsProvider)
credsProvider
- AWS credentials provider.public void registerAddresses(Collection<InetSocketAddress> addrs) throws IgniteSpiException
Implementation should accept duplicates quietly, but should not register address if it is already registered.
addrs
- Addresses to register. Not null
and not empty.IgniteSpiException
- In case of error.public void unregisterAddresses(Collection<InetSocketAddress> addrs) throws IgniteSpiException
Implementation should accept addresses that are currently not registered quietly (just no-op).
addrs
- Addresses to unregister. Not null
and not empty.IgniteSpiException
- In case of error.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024