public class TcpDiscoveryGoogleStorageIpFinder extends TcpDiscoveryIpFinderAdapter
For information about Cloud Storage visit cloud.google.com.
setServiceAccountId(String)
)setServiceAccountP12FilePath(String)
)setProjectName(String)
)setBucketName(String)
)TcpDiscoveryIpFinderAdapter.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()
.
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.
|
void |
setBucketName(String bucketName)
Sets Google Cloud Storage bucket name.
|
void |
setProjectName(String projectName)
Sets Google Cloud Platforms project name.
|
void |
setServiceAccountId(String id)
Sets the service account ID (typically an e-mail address).
|
void |
setServiceAccountP12FilePath(String p12FileName)
Sets a full path to the private key in PKCS12 format of the Service Account.
|
void |
unregisterAddresses(Collection<InetSocketAddress> addrs)
Unregisters provided addresses.
|
close, initializeLocalAddresses, isShared, onSpiContextDestroyed, onSpiContextInitialized, setShared, spiContext, toString
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 void setProjectName(String projectName)
For details refer to Google Cloud Platform API reference.
projectName
- Project name.@IgniteSpiConfiguration(optional=false) public void setBucketName(String bucketName)
setServiceAccountId(String)
) must be authorized to
perform this operation.bucketName
- Bucket name.@IgniteSpiConfiguration(optional=false) public void setServiceAccountP12FilePath(String p12FileName)
For more information please refer to Service Account Authentication.
p12FileName
- Private key file full path.@IgniteSpiConfiguration(optional=false) public void setServiceAccountId(String id)
For more information please refer to Service Account Authentication.
id
- Service account ID.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015