|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.AwsConfig
public class AwsConfig
The AWSConfig 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.
Constructor Summary | |
---|---|
AwsConfig()
|
Method Summary | |
---|---|
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 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; if nothing is specified null is returned. |
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 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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AwsConfig()
Method Detail |
---|
public String getAccessKey()
setAccessKey(String)
public AwsConfig setAccessKey(String accessKey)
accessKey
- the access key.
IllegalArgumentException
- if accessKey is null or empty.getAccessKey()
,
setSecretKey(String)
public String getSecretKey()
setSecretKey(String)
public AwsConfig setSecretKey(String secretKey)
secretKey
- the secret key
getSecretKey()
,
setAccessKey(String)
public String getRegion()
setRegion(String)
public AwsConfig setRegion(String region)
region
- the region
IllegalArgumentException
- if region is null or empty.public String getHostHeader()
public AwsConfig setHostHeader(String hostHeader)
hostHeader
- the new host header
IllegalArgumentException
- 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.
setTagKey(String)
public AwsConfig setTagValue(String tagValue)
tagValue
- the tag value.
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 to set
getConnectionTimeoutSeconds()
,
TcpIpConfig.setConnectionTimeoutSeconds(int)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |