Class Listener
- All Implemented Interfaces:
Serializable
,Cloneable
Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The port on which the instance is listening.The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.The port on which the load balancer is listening.The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.The Amazon Resource Name (ARN) of the server certificate.int
hashCode()
void
setInstancePort
(Integer instancePort) The port on which the instance is listening.void
setInstanceProtocol
(String instanceProtocol) The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.void
setLoadBalancerPort
(Integer loadBalancerPort) The port on which the load balancer is listening.void
setProtocol
(String protocol) The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.void
setSSLCertificateId
(String sSLCertificateId) The Amazon Resource Name (ARN) of the server certificate.toString()
Returns a string representation of this object; useful for testing and debugging.withInstancePort
(Integer instancePort) The port on which the instance is listening.withInstanceProtocol
(String instanceProtocol) The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.withLoadBalancerPort
(Integer loadBalancerPort) The port on which the load balancer is listening.withProtocol
(String protocol) The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.withSSLCertificateId
(String sSLCertificateId) The Amazon Resource Name (ARN) of the server certificate.
-
Constructor Details
-
Listener
public Listener()Default constructor for Listener object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Listener
Constructs a new Listener object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
protocol
- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.instancePort
- The port on which the instance is listening.
-
-
Method Details
-
setProtocol
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
- Parameters:
protocol
- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
-
getProtocol
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
- Returns:
- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
-
withProtocol
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
- Parameters:
protocol
- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLoadBalancerPort
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
- Parameters:
loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
-
getLoadBalancerPort
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
- Returns:
- The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
-
withLoadBalancerPort
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
- Parameters:
loadBalancerPort
- The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceProtocol
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.- Parameters:
instanceProtocol
- The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.
-
getInstanceProtocol
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.- Returns:
- The protocol to use for routing traffic to back-end instances:
HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.
-
withInstanceProtocol
The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.- Parameters:
instanceProtocol
- The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.If the front-end protocol is HTTP, HTTPS, TCP, or SSL,
InstanceProtocol
must be at the same protocol.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is secure, (HTTPS or SSL), the listener'sInstanceProtocol
must also be secure.If there is another listener with the same
InstancePort
whoseInstanceProtocol
is HTTP or TCP, the listener'sInstanceProtocol
must be HTTP or TCP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstancePort
The port on which the instance is listening.
- Parameters:
instancePort
- The port on which the instance is listening.
-
getInstancePort
The port on which the instance is listening.
- Returns:
- The port on which the instance is listening.
-
withInstancePort
The port on which the instance is listening.
- Parameters:
instancePort
- The port on which the instance is listening.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSSLCertificateId
The Amazon Resource Name (ARN) of the server certificate.
- Parameters:
sSLCertificateId
- The Amazon Resource Name (ARN) of the server certificate.
-
getSSLCertificateId
The Amazon Resource Name (ARN) of the server certificate.
- Returns:
- The Amazon Resource Name (ARN) of the server certificate.
-
withSSLCertificateId
The Amazon Resource Name (ARN) of the server certificate.
- Parameters:
sSLCertificateId
- The Amazon Resource Name (ARN) of the server certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-