public class AwsConfig extends AliasedDiscoveryConfig<AwsConfig>
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 and Description |
---|
AwsConfig() |
AwsConfig(AwsConfig awsConfig) |
equals, getFactoryId, getProperties, getProperty, getTag, hashCode, isEnabled, isUsePublicIp, readData, setProperty, setUsePublicIp, toString, writeData
public AwsConfig()
public AwsConfig(AwsConfig awsConfig)
@Deprecated public String getAccessKey()
AliasedDiscoveryConfig.getProperty(String)
instead.setAccessKey(String)
@Deprecated public AwsConfig setAccessKey(String accessKey)
AliasedDiscoveryConfig.setProperty(String, String)
insteadaccessKey
- the access key to access AWSIllegalArgumentException
- if accessKey is null
or emptygetAccessKey()
,
setSecretKey(String)
@Deprecated public String getSecretKey()
AliasedDiscoveryConfig.getProperty(String)
instead.null
if no access key is configured.setSecretKey(String)
@Deprecated public AwsConfig setSecretKey(String secretKey)
AliasedDiscoveryConfig.setProperty(String, String)
insteadsecretKey
- the secret key to access AWSIllegalArgumentException
- if secretKey is null
or emptygetSecretKey()
,
setAccessKey(String)
@Deprecated public String getRegion()
AliasedDiscoveryConfig.getProperty(String)
instead.setRegion(String)
@Deprecated public AwsConfig setRegion(String region)
AliasedDiscoveryConfig.setProperty(String, String)
insteadregion
- the region where the EC2 instances running the Hazelcast members will be runningIllegalArgumentException
- if region is null
or empty@Deprecated public String getHostHeader()
AliasedDiscoveryConfig.getProperty(String)
instead.@Deprecated public AwsConfig setHostHeader(String hostHeader)
AliasedDiscoveryConfig.setProperty(String, String)
insteadhostHeader
- the new host header; the address where the EC2 API can be foundIllegalArgumentException
- if hostHeader is null
or an empty string@Deprecated public String getSecurityGroupName()
AliasedDiscoveryConfig.getProperty(String)
instead.null
is returned.null
if nothing has been configured@Deprecated public AwsConfig setSecurityGroupName(String securityGroupName)
AliasedDiscoveryConfig.setProperty(String, String)
insteadsecurityGroupName
- the security group namegetSecurityGroupName()
@Deprecated public String getTagKey()
AliasedDiscoveryConfig.getProperty(String)
instead.null
is returned.null
if nothing is returnedpublic AwsConfig setTagKey(String tagKey)
AliasedDiscoveryConfig.getProperty(String)
instead.tagKey
- the tag key (see the filtering section above for more information)setTagKey(String)
@Deprecated public String getTagValue()
AliasedDiscoveryConfig.getProperty(String)
instead.null
is returned.null
if nothing is returned@Deprecated public AwsConfig setTagValue(String tagValue)
AliasedDiscoveryConfig.setProperty(String, String)
insteadtagValue
- the tag value (see the filtering section above for more information)setTagKey(String)
,
getTagValue()
@Deprecated public int getConnectionTimeoutSeconds()
AliasedDiscoveryConfig.getProperty(String)
instead.setConnectionTimeoutSeconds(int)
@Deprecated public AwsConfig setConnectionTimeoutSeconds(int connectionTimeoutSeconds)
AliasedDiscoveryConfig.setProperty(String, String)
insteadTcpIpConfig.setConnectionTimeoutSeconds(int)
for more information.connectionTimeoutSeconds
- the connectionTimeoutSeconds (connection timeout in seconds) to setgetConnectionTimeoutSeconds()
,
TcpIpConfig.setConnectionTimeoutSeconds(int)
@Deprecated public String getIamRole()
AliasedDiscoveryConfig.getProperty(String)
instead.null
if nothing is returned(int)
@Deprecated public AwsConfig setIamRole(String iamRole)
AliasedDiscoveryConfig.setProperty(String, String)
insteadiamRole
- the IAM Role namegetIamRole()
@Deprecated public String getHzPort()
AliasedDiscoveryConfig.getProperty(String)
instead.public AwsConfig setEnabled(boolean enabled)
setEnabled
in class AliasedDiscoveryConfig<AwsConfig>
enabled
- true
if enabled, false
otherwisepublic int getId()
IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.