Class HazelcastAwsDiscoveryProperties
java.lang.Object
org.apereo.cas.configuration.model.support.hazelcast.discovery.HazelcastAwsDiscoveryProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-hazelcast-discovery-aws")
public class HazelcastAwsDiscoveryProperties
extends Object
implements Serializable
This is
HazelcastAwsDiscoveryProperties
.- Since:
- 5.3.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
AWS discovery access key property.static final String
Property name for ECS cluster short name or ARN; default is the current cluster.static final String
Property name for connection and read timeouts when making a call to AWS API.static final String
Property name for filter to look only for ECS tasks with the given family name; mutually exclusive withAWS_DISCOVERY_SERVCE_NAME
.static final String
AWS discovery host header property.static final String
AWS discovery IAM role property.static final String
AWS discovery HZ port property.static final String
Property name for connection and read timeouts when making a call to AWS API.static final String
AWS discovery region property.static final String
AWS discovery secret key property.static final String
AWS discovery security group name property.static final String
Property name for filter to look only for ECS tasks from the given service; mutually exclusive withAWS_DISCOVERY_FAMILY
.static final String
AWS discovery tag key property.static final String
AWS discovery tag value property. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAWS access key.ECS cluster short name or ARN; default is the current cluster.int
The maximum amount of time Hazelcast will try to connect to a well known member before giving up.Filter to look only for ECS tasks with the given family name; mutually exclusive withgetServiceName()
.Host header.If you do not want to use access key and secret key, you can specify iam-role.int
getPort()
Hazelcast port.AWS region.AWS secret key.If a security group is configured, only instances within that security group are selected.Filter to look only for ECS tasks from the given service; mutually exclusive withgetFamily()
.If a tag key/value is set, only instances with that tag key/value will be selected.If a tag key/value is set, only instances with that tag key/value will be selected.setAccessKey
(String accessKey) AWS access key.setCluster
(String cluster) ECS cluster short name or ARN; default is the current cluster.setConnectionTimeoutSeconds
(int connectionTimeoutSeconds) The maximum amount of time Hazelcast will try to connect to a well known member before giving up.Filter to look only for ECS tasks with the given family name; mutually exclusive withgetServiceName()
.setHostHeader
(String hostHeader) Host header.setIamRole
(String iamRole) If you do not want to use access key and secret key, you can specify iam-role.setPort
(int port) Hazelcast port.AWS region.setSecretKey
(String secretKey) AWS secret key.setSecurityGroupName
(String securityGroupName) If a security group is configured, only instances within that security group are selected.setServiceName
(String serviceName) Filter to look only for ECS tasks from the given service; mutually exclusive withgetFamily()
.If a tag key/value is set, only instances with that tag key/value will be selected.setTagValue
(String tagValue) If a tag key/value is set, only instances with that tag key/value will be selected.
-
Field Details
-
AWS_DISCOVERY_ACCESS_KEY
AWS discovery access key property.- See Also:
-
AWS_DISCOVERY_SECRET_KEY
AWS discovery secret key property.- See Also:
-
AWS_DISCOVERY_IAM_ROLE
AWS discovery IAM role property.- See Also:
-
AWS_DISCOVERY_REGION
AWS discovery region property.- See Also:
-
AWS_DISCOVERY_HOST_HEADER
AWS discovery host header property.- See Also:
-
AWS_DISCOVERY_SECURITY_GROUP_NAME
AWS discovery security group name property.- See Also:
-
AWS_DISCOVERY_TAG_KEY
AWS discovery tag key property.- See Also:
-
AWS_DISCOVERY_TAG_VALUE
AWS discovery tag value property.- See Also:
-
AWS_DISCOVERY_PORT
AWS discovery HZ port property.- See Also:
-
AWS_DISCOVERY_CONNECTION_TIMEOUT
Property name for connection and read timeouts when making a call to AWS API.- See Also:
-
AWS_DISCOVERY_READ_TIMEOUT
Property name for connection and read timeouts when making a call to AWS API.- See Also:
-
AWS_DISCOVERY_CLUSTER
Property name for ECS cluster short name or ARN; default is the current cluster.- See Also:
-
AWS_DISCOVERY_SERVCE_NAME
Property name for filter to look only for ECS tasks from the given service; mutually exclusive withAWS_DISCOVERY_FAMILY
.- See Also:
-
AWS_DISCOVERY_FAMILY
Property name for filter to look only for ECS tasks with the given family name; mutually exclusive withAWS_DISCOVERY_SERVCE_NAME
.- See Also:
-
-
Constructor Details
-
HazelcastAwsDiscoveryProperties
public HazelcastAwsDiscoveryProperties()
-
-
Method Details
-
getAccessKey
AWS access key. -
getSecretKey
AWS secret key. -
getIamRole
If you do not want to use access key and secret key, you can specify iam-role. Hazelcast fetches your credentials by using your IAM role. This setting only affects deployments on Amazon EC2. If you are deploying CAS in an Amazon ECS environment, the role should not be specified. The role is fetched from the task definition that is assigned to run CAS. -
getRegion
AWS region. i.e.us-east-1
. The region where your members are running. -
getHostHeader
Host header. i.e.ec2.amazonaws.com
. The URL that is the entry point for a web service. -
getSecurityGroupName
If a security group is configured, only instances within that security group are selected. -
getTagKey
If a tag key/value is set, only instances with that tag key/value will be selected. -
getTagValue
If a tag key/value is set, only instances with that tag key/value will be selected. -
getPort
public int getPort()Hazelcast port. Typically may be set to5701
. You can set searching for other ports rather than 5701 if you've members on different ports. -
getConnectionTimeoutSeconds
public int getConnectionTimeoutSeconds()The maximum amount of time Hazelcast will try to connect to a well known member before giving up. Setting this value too low could mean that a member is not able to connect to a cluster. Setting the value too high means that member startup could slow down because of longer timeouts (for example, when a well known member is not up). Increasing this value is recommended if you have many IPs listed and the members cannot properly build up the cluster. Its default value is 5. -
getCluster
ECS cluster short name or ARN; default is the current cluster. -
getServiceName
Filter to look only for ECS tasks from the given service; mutually exclusive withgetFamily()
. -
getFamily
Filter to look only for ECS tasks with the given family name; mutually exclusive withgetServiceName()
. -
setAccessKey
AWS access key.- Returns:
this
.
-
setSecretKey
AWS secret key.- Returns:
this
.
-
setIamRole
If you do not want to use access key and secret key, you can specify iam-role. Hazelcast fetches your credentials by using your IAM role. This setting only affects deployments on Amazon EC2. If you are deploying CAS in an Amazon ECS environment, the role should not be specified. The role is fetched from the task definition that is assigned to run CAS.- Returns:
this
.
-
setRegion
AWS region. i.e.us-east-1
. The region where your members are running.- Returns:
this
.
-
setHostHeader
Host header. i.e.ec2.amazonaws.com
. The URL that is the entry point for a web service.- Returns:
this
.
-
setSecurityGroupName
If a security group is configured, only instances within that security group are selected.- Returns:
this
.
-
setTagKey
If a tag key/value is set, only instances with that tag key/value will be selected.- Returns:
this
.
-
setTagValue
If a tag key/value is set, only instances with that tag key/value will be selected.- Returns:
this
.
-
setPort
Hazelcast port. Typically may be set to5701
. You can set searching for other ports rather than 5701 if you've members on different ports.- Returns:
this
.
-
setConnectionTimeoutSeconds
The maximum amount of time Hazelcast will try to connect to a well known member before giving up. Setting this value too low could mean that a member is not able to connect to a cluster. Setting the value too high means that member startup could slow down because of longer timeouts (for example, when a well known member is not up). Increasing this value is recommended if you have many IPs listed and the members cannot properly build up the cluster. Its default value is 5.- Returns:
this
.
-
setCluster
ECS cluster short name or ARN; default is the current cluster.- Returns:
this
.
-
setServiceName
Filter to look only for ECS tasks from the given service; mutually exclusive withgetFamily()
.- Returns:
this
.
-
setFamily
Filter to look only for ECS tasks with the given family name; mutually exclusive withgetServiceName()
.- Returns:
this
.
-