public class TcpDiscoveryGoogleStorageIpFinder extends TcpDiscoveryIpFinderAdapter
For information about Cloud Storage visit cloud.google.com.
setServiceAccountId(String)
)setServiceAccountP12FilePath(String)
)setProjectName(String)
)setBucketName(String)
)setShared(boolean)
)
The finder will create a bucket with the provided name. The bucket will contain entries named
like the following: 192.168.1.136#1001
.
Note that storing data in Google Cloud Storage service will result in charges to your Google Cloud Platform 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 |
---|
TcpDiscoveryGoogleStorageIpFinder() |
Modifier and Type | Method and Description |
---|---|
Collection<InetSocketAddress> |
getRegisteredAddresses()
Gets all addresses registered in this finder.
|
void |
registerAddresses(Collection<InetSocketAddress> addrs)
Registers new addresses.
|
TcpDiscoveryGoogleStorageIpFinder |
setBucketName(String bucketName)
Sets Google Cloud Storage bucket name.
|
TcpDiscoveryGoogleStorageIpFinder |
setProjectName(String projectName)
Sets Google Cloud Platforms project name.
|
TcpDiscoveryGoogleStorageIpFinder |
setServiceAccountId(String id)
Sets the service account ID (typically an e-mail address).
|
TcpDiscoveryGoogleStorageIpFinder |
setServiceAccountP12FilePath(String p12FileName)
Sets a full path to the private key in PKCS12 format of the Service Account.
|
TcpDiscoveryGoogleStorageIpFinder |
setShared(boolean shared)
Sets shared flag.
|
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 TcpDiscoveryGoogleStorageIpFinder setProjectName(String projectName)
For details refer to Google Cloud Platform API reference.
projectName
- Project name.this
for chaining.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryGoogleStorageIpFinder setBucketName(String bucketName)
setServiceAccountId(String)
) must be authorized to
perform this operation.bucketName
- Bucket name.this
for chaining.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryGoogleStorageIpFinder setServiceAccountP12FilePath(String p12FileName)
For more information please refer to Service Account Authentication.
p12FileName
- Private key file full path.this
for chaining.@IgniteSpiConfiguration(optional=false) public TcpDiscoveryGoogleStorageIpFinder setServiceAccountId(String id)
For more information please refer to Service Account Authentication.
id
- Service account ID.this
for chaining.public TcpDiscoveryGoogleStorageIpFinder 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.15 Release Date : December 3 2024