Hazelcast C++ Client
|
The ClientAwsConfig contains the configuration for client to connect to nodes in aws environment. More...
#include <ClientAwsConfig.h>
Public Member Functions | |
const std::string & | getAccessKey () const |
Gets the access key to access AWS. More... | |
ClientAwsConfig & | setAccessKey (const std::string &accessKey) |
Sets the access key to access AWS. More... | |
const std::string & | getSecretKey () const |
Gets the secret key to access AWS. More... | |
ClientAwsConfig & | setSecretKey (const std::string &secretKey) |
Sets the secret key to access AWS. More... | |
const std::string & | getRegion () const |
Gets the region where the EC2 instances running the Hazelcast members will be running. More... | |
ClientAwsConfig & | setRegion (const std::string ®ion) |
Sets the region where the EC2 instances running the Hazelcast members will be running. More... | |
const std::string & | getHostHeader () const |
Gets the host header; the address where the EC2 API can be found. More... | |
ClientAwsConfig & | setHostHeader (const std::string &hostHeader) |
Sets the host header; the address where the EC2 API can be found. More... | |
ClientAwsConfig & | setEnabled (bool enabled) |
Enables or disables the aws join mechanism. More... | |
bool | isEnabled () const |
Checks if the aws join mechanism is enabled. More... | |
ClientAwsConfig & | setSecurityGroupName (const std::string &securityGroupName) |
Sets the security group name. More... | |
const std::string & | getSecurityGroupName () const |
Gets the security group name. More... | |
ClientAwsConfig & | setTagKey (const std::string &tagKey) |
Sets the tag key. More... | |
const std::string & | getTagKey () const |
Gets the tag key. More... | |
ClientAwsConfig & | setTagValue (const std::string &tagValue) |
Sets the tag value. More... | |
const std::string & | getTagValue () const |
Gets the tag value. More... | |
const std::string & | getIamRole () const |
Gets the iamRole name. More... | |
ClientAwsConfig & | setIamRole (const std::string &iamRole) |
Sets the tag value. More... | |
bool | isInsideAws () const |
If client is inside aws, it will use private ip addresses directly, otherwise it will convert private ip addresses to public addresses internally by calling AWS API. More... | |
ClientAwsConfig & | setInsideAws (bool insideAws) |
Set to true if client is inside aws environment Default value is false. More... | |
The ClientAwsConfig contains the configuration for client to connect to nodes in aws environment.
The ClientAwsConfig contains the configuration for AWS join mechanism.
what happens behind the scenes is that data about the running AWS instances in a specific region are downloaded using the accesskey/secretkey and are potential Hazelcast members.
There are 2 mechanisms for filtering out AWS instances and these mechanisms can be combined (AND).
const std::string & hazelcast::client::config::ClientAwsConfig::getAccessKey | ( | ) | const |
Gets the access key to access AWS.
Returns empty string if no access key is configured.
const std::string & hazelcast::client::config::ClientAwsConfig::getHostHeader | ( | ) | const |
Gets the host header; the address where the EC2 API can be found.
const std::string & hazelcast::client::config::ClientAwsConfig::getIamRole | ( | ) | const |
Gets the iamRole name.
const std::string & hazelcast::client::config::ClientAwsConfig::getRegion | ( | ) | const |
Gets the region where the EC2 instances running the Hazelcast members will be running.
const std::string & hazelcast::client::config::ClientAwsConfig::getSecretKey | ( | ) | const |
Gets the secret key to access AWS.
Returns empty string if no access key is configured.
const std::string & hazelcast::client::config::ClientAwsConfig::getSecurityGroupName | ( | ) | const |
Gets the security group name.
If nothing has been configured, empty string is returned.
const std::string & hazelcast::client::config::ClientAwsConfig::getTagKey | ( | ) | const |
Gets the tag key.
If nothing is specified, empty string is returned.
const std::string & hazelcast::client::config::ClientAwsConfig::getTagValue | ( | ) | const |
Gets the tag value.
If nothing is specified, empty string is returned.
bool hazelcast::client::config::ClientAwsConfig::isEnabled | ( | ) | const |
Checks if the aws join mechanism is enabled.
bool hazelcast::client::config::ClientAwsConfig::isInsideAws | ( | ) | const |
If client is inside aws, it will use private ip addresses directly, otherwise it will convert private ip addresses to public addresses internally by calling AWS API.
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setAccessKey | ( | const std::string & | accessKey | ) |
Sets the access key to access AWS.
accessKey | the access key to access AWS |
IllegalArgumentException | if accessKey is empty. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setEnabled | ( | bool | enabled | ) |
Enables or disables the aws join mechanism.
enabled | true if enabled, false otherwise. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setHostHeader | ( | const std::string & | hostHeader | ) |
Sets the host header; the address where the EC2 API can be found.
hostHeader | the new host header; the address where the EC2 API can be found |
IllegalArgumentException | if hostHeader is an empty string. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setIamRole | ( | const std::string & | iamRole | ) |
Sets the tag value.
See the filtering section above for more information.
iamRole | the IAM Role name. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setInsideAws | ( | bool | insideAws | ) |
Set to true if client is inside aws environment Default value is false.
insideAws | isInsideAws |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setRegion | ( | const std::string & | region | ) |
Sets the region where the EC2 instances running the Hazelcast members will be running.
region | the region where the EC2 instances running the Hazelcast members will be running |
IllegalArgumentException | if region is empty. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setSecretKey | ( | const std::string & | secretKey | ) |
Sets the secret key to access AWS.
secretKey | the secret key to access AWS |
IllegalArgumentException | if secretKey is empty. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setSecurityGroupName | ( | const std::string & | securityGroupName | ) |
Sets the security group name.
See the filtering section above for more information.
securityGroupName | the security group name. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setTagKey | ( | const std::string & | tagKey | ) |
Sets the tag key.
See the filtering section above for more information.
tagKey | the tag key. See the filtering section above for more information. |
ClientAwsConfig & hazelcast::client::config::ClientAwsConfig::setTagValue | ( | const std::string & | tagValue | ) |
Sets the tag value.
See the filtering section above for more information.
tagValue | the tag value. See the filtering section above for more information. |