|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elasticloadbalancing.model.HealthCheck
public class HealthCheck
The HealthCheck data type.
Constructor Summary | |
---|---|
HealthCheck()
Default constructor for a new HealthCheck object. |
|
HealthCheck(String target,
Integer interval,
Integer timeout,
Integer unhealthyThreshold,
Integer healthyThreshold)
Constructs a new HealthCheck object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Integer |
getHealthyThreshold()
Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state. |
Integer |
getInterval()
Specifies the approximate interval, in seconds, between health checks of an individual instance. |
String |
getTarget()
Specifies the instance being checked. |
Integer |
getTimeout()
Specifies the amount of time, in seconds, during which no response means a failed health probe. |
Integer |
getUnhealthyThreshold()
Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state. |
int |
hashCode()
|
void |
setHealthyThreshold(Integer healthyThreshold)
Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state. |
void |
setInterval(Integer interval)
Specifies the approximate interval, in seconds, between health checks of an individual instance. |
void |
setTarget(String target)
Specifies the instance being checked. |
void |
setTimeout(Integer timeout)
Specifies the amount of time, in seconds, during which no response means a failed health probe. |
void |
setUnhealthyThreshold(Integer unhealthyThreshold)
Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
HealthCheck |
withHealthyThreshold(Integer healthyThreshold)
Specifies the number of consecutive health probe successes required before moving the instance to the Healthy state. |
HealthCheck |
withInterval(Integer interval)
Specifies the approximate interval, in seconds, between health checks of an individual instance. |
HealthCheck |
withTarget(String target)
Specifies the instance being checked. |
HealthCheck |
withTimeout(Integer timeout)
Specifies the amount of time, in seconds, during which no response means a failed health probe. |
HealthCheck |
withUnhealthyThreshold(Integer unhealthyThreshold)
Specifies the number of consecutive health probe failures required before moving the instance to the Unhealthy state. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HealthCheck()
public HealthCheck(String target, Integer interval, Integer timeout, Integer unhealthyThreshold, Integer healthyThreshold)
target
- Specifies the instance being checked. The protocol is
either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1)
through 65535. TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
interval
- Specifies the approximate interval, in seconds,
between health checks of an individual instance.timeout
- Specifies the amount of time, in seconds, during which
no response means a failed health probe. unhealthyThreshold
- Specifies the number of consecutive health
probe failures required before moving the instance to the
Unhealthy state.healthyThreshold
- Specifies the number of consecutive health
probe successes required before moving the instance to the
Healthy state.Method Detail |
---|
public String getTarget()
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
public void setTarget(String target)
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
target
- Specifies the instance being checked. The protocol is either TCP,
HTTP, HTTPS, or SSL. The range of valid ports is one (1) through
65535. TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
public HealthCheck withTarget(String target)
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
Returns a reference to this object so that method calls can be chained together.
target
- Specifies the instance being checked. The protocol is either TCP,
HTTP, HTTPS, or SSL. The range of valid ports is one (1) through
65535. TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case a healthcheck simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP or HTTPS protocol, the situation is different. You have to include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target needs to be 1024 16-bit Unicode characters or less.
public Integer getInterval()
Constraints:
Range: 1 - 300
public void setInterval(Integer interval)
Constraints:
Range: 1 - 300
interval
- Specifies the approximate interval, in seconds, between health checks
of an individual instance.public HealthCheck withInterval(Integer interval)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 300
interval
- Specifies the approximate interval, in seconds, between health checks
of an individual instance.
public Integer getTimeout()
Constraints:
Range: 1 - 300
public void setTimeout(Integer timeout)
Constraints:
Range: 1 - 300
timeout
- Specifies the amount of time, in seconds, during which no response
means a failed health probe. public HealthCheck withTimeout(Integer timeout)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 300
timeout
- Specifies the amount of time, in seconds, during which no response
means a failed health probe. public Integer getUnhealthyThreshold()
Constraints:
Range: 2 - 10
public void setUnhealthyThreshold(Integer unhealthyThreshold)
Constraints:
Range: 2 - 10
unhealthyThreshold
- Specifies the number of consecutive health probe failures required
before moving the instance to the Unhealthy state.public HealthCheck withUnhealthyThreshold(Integer unhealthyThreshold)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 2 - 10
unhealthyThreshold
- Specifies the number of consecutive health probe failures required
before moving the instance to the Unhealthy state.
public Integer getHealthyThreshold()
Constraints:
Range: 2 - 10
public void setHealthyThreshold(Integer healthyThreshold)
Constraints:
Range: 2 - 10
healthyThreshold
- Specifies the number of consecutive health probe successes required
before moving the instance to the Healthy state.public HealthCheck withHealthyThreshold(Integer healthyThreshold)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 2 - 10
healthyThreshold
- Specifies the number of consecutive health probe successes required
before moving the instance to the Healthy state.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |