public class TcpDiscoveryS3IpFinder extends TcpDiscoveryIpFinderAdapter
For information about Amazon S3 visit aws.amazon.com.
setAwsCredentials(AWSCredentials)
and
setAwsCredentialsProvider(AWSCredentialsProvider)
setBucketName(String)
)setClientConfiguration(ClientConfiguration)
)setShared(boolean)
)setBucketEndpoint(String)
)setSSEAlgorithm(String)
)setKeyPrefix(String)
)setEncryptionService(EncryptionService)
)
The finder will create S3 bucket with configured name. The bucket will contain entries named like the following:
192.168.1.136#1001
.
Note that storing data in AWS S3 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 by default (see TcpDiscoveryIpFinder.isShared()
.
ignite
Constructor and Description |
---|
TcpDiscoveryS3IpFinder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<InetSocketAddress> |
getRegisteredAddresses()
Gets all addresses registered in this finder.
|
void |
registerAddresses(Collection<InetSocketAddress> addrs)
Registers new addresses.
|
TcpDiscoveryS3IpFinder |
setAwsCredentials(com.amazonaws.auth.AWSCredentials cred)
Sets AWS credentials.
|
TcpDiscoveryS3IpFinder |
setAwsCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider credProvider)
Sets AWS credentials provider.
|
TcpDiscoveryS3IpFinder |
setBucketEndpoint(String bucketEndpoint)
Sets bucket endpoint for IP finder.
|
TcpDiscoveryS3IpFinder |
setBucketName(String bucketName)
Sets bucket name for IP finder.
|
TcpDiscoveryS3IpFinder |
setClientConfiguration(com.amazonaws.ClientConfiguration cfg)
Sets Amazon client configuration.
|
TcpDiscoveryS3IpFinder |
setEncryptionService(EncryptionService encryptionSvc)
Sets encryption service for client side node address encryption.
|
TcpDiscoveryS3IpFinder |
setKeyPrefix(String keyPrefix)
This can be thought of as the sub-folder within the bucket that will hold the node addresses.
|
TcpDiscoveryS3IpFinder |
setShared(boolean shared)
Sets shared flag.
|
TcpDiscoveryS3IpFinder |
setSSEAlgorithm(String sseAlg)
Sets server-side encryption algorithm for Amazon S3-managed encryption keys.
|
String |
toString() |
void |
unregisterAddresses(Collection<InetSocketAddress> addrs)
Unregisters provided addresses.
|
close, discoveryClientMode, initializeLocalAddresses, isShared, onSpiContextDestroyed, onSpiContextInitialized, spiContext
public Collection<InetSocketAddress> getRegisteredAddresses() throws IgniteSpiException
null
.IgniteSpiException
- In case of error.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.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryS3IpFinder setBucketName(String bucketName)
bucketName
- Bucket name.this
for chaining.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryS3IpFinder setBucketEndpoint(String bucketEndpoint)
bucketEndpoint
- Bucket endpoint, for example, s3.us-east-2.amazonaws.com.this
for chaining.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryS3IpFinder setSSEAlgorithm(String sseAlg)
sseAlg
- Server-side encryption algorithm, for example, AES256 or SSES3.this
for chaining.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryS3IpFinder setClientConfiguration(com.amazonaws.ClientConfiguration cfg)
For details refer to Amazon S3 API reference.
cfg
- Amazon client configuration.this
for chaining.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryS3IpFinder setEncryptionService(EncryptionService encryptionSvc)
encryptionSvc
- Encryption service .this
for chaining.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryS3IpFinder setAwsCredentials(com.amazonaws.auth.AWSCredentials cred)
setAwsCredentialsProvider(AWSCredentialsProvider)
or this one.
For details refer to Amazon S3 API reference.
cred
- AWS credentials.this
for chaining.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryS3IpFinder setAwsCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider credProvider)
setAwsCredentials(AWSCredentials)
or this one.
For details refer to Amazon S3 API reference.
credProvider
- AWS credentials provider.this
for chaining.@IgniteSpiConfiguration(optional=true) public TcpDiscoveryS3IpFinder setKeyPrefix(String keyPrefix)
keyPrefix
- AWS credentials provider.this
for chaining.public TcpDiscoveryS3IpFinder 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.setShared
in class TcpDiscoveryIpFinderAdapter
shared
- true
if this IP finder is shared.this
for chaining.public String toString()
toString
in class TcpDiscoveryIpFinderAdapter
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024