com.hazelcast.config
public class AwsConfig extends Object
Constructor and Description |
---|
AwsConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey()
Gets the access key to access AWS.
|
int |
getConnectionTimeoutSeconds()
Gets the connection timeout in seconds.
|
String |
getHostHeader()
Gets the host header; the address where the EC2 API can be found.
|
String |
getRegion()
Gets the region where the EC2 instances running the Hazelcast members will be running.
|
String |
getSecretKey()
Gets the secret key to access AWS.
|
String |
getSecurityGroupName()
Gets the security group name.
|
String |
getTagKey()
Gets the tag key.
|
String |
getTagValue()
Gets the tag value.
|
boolean |
isEnabled()
Checks if the aws join mechanism is enabled.
|
AwsConfig |
setAccessKey(String accessKey)
Sets the access key to access AWS.
|
AwsConfig |
setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
Sets the connect timeout in seconds.
|
AwsConfig |
setEnabled(boolean enabled)
Enables or disables the aws join mechanism.
|
AwsConfig |
setHostHeader(String hostHeader)
Sets the host header; the address where the EC2 API can be found.
|
AwsConfig |
setRegion(String region)
Sets the region where the EC2 instances running the Hazelcast members will be running.
|
AwsConfig |
setSecretKey(String secretKey)
Sets the secret key to access AWS.
|
AwsConfig |
setSecurityGroupName(String securityGroupName)
Sets the security group name.
|
AwsConfig |
setTagKey(String tagKey)
Sets the tag key.
|
AwsConfig |
setTagValue(String tagValue)
Sets the tag value.
|
String |
toString() |
public String getAccessKey()
setAccessKey(String)
public AwsConfig setAccessKey(String accessKey)
accessKey
- the access key to access AWSIllegalArgumentException
- if accessKey is null or empty.getAccessKey()
,
setSecretKey(String)
public String getSecretKey()
setSecretKey(String)
public AwsConfig setSecretKey(String secretKey)
secretKey
- the secret key to access AWSgetSecretKey()
,
setAccessKey(String)
public String getRegion()
setRegion(String)
public AwsConfig setRegion(String region)
region
- the region where the EC2 instances running the Hazelcast members will be runningIllegalArgumentException
- if region is null or empty.public String getHostHeader()
public AwsConfig setHostHeader(String hostHeader)
hostHeader
- the new host header; the address where the EC2 API can be foundIllegalArgumentException
- if hostHeader is null or an empty string.public AwsConfig setEnabled(boolean enabled)
enabled
- true if enabled, false otherwise.public boolean isEnabled()
public AwsConfig setSecurityGroupName(String securityGroupName)
securityGroupName
- the security group name.getSecurityGroupName()
public String getSecurityGroupName()
public AwsConfig setTagKey(String tagKey)
tagKey
- the tag key. See the filtering section above for more information.setTagKey(String)
public AwsConfig setTagValue(String tagValue)
tagValue
- the tag value. See the filtering section above for more information.setTagKey(String)
,
getTagValue()
public String getTagKey()
public String getTagValue()
public int getConnectionTimeoutSeconds()
setConnectionTimeoutSeconds(int)
public AwsConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
TcpIpConfig.setConnectionTimeoutSeconds(int)
for more information.connectionTimeoutSeconds
- the connectionTimeoutSeconds (connection timeout in seconds) to setgetConnectionTimeoutSeconds()
,
TcpIpConfig.setConnectionTimeoutSeconds(int)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.