Package com.myjeeva.digitalocean.pojo
Class HealthCheck
java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimitBase
com.myjeeva.digitalocean.pojo.Base
com.myjeeva.digitalocean.pojo.HealthCheck
- All Implemented Interfaces:
Serializable
Represents DigitalOcean Load Balancer health check object
- Since:
- v2.11
- Author:
- Thomas Lehoux (https://github.com/tlehoux)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()getPort()voidsetCheckIntervalInSeconds(Integer checkIntervalInSeconds) voidsetHealthyThreshold(Integer healthyThreshold) voidvoidvoidsetProtocol(Protocol protocol) voidsetResponseTimeoutInSeconds(Integer responseTimeoutInSeconds) voidsetUnhealthyThreshold(Integer unhealthyThreshold) toString()Methods inherited from class com.myjeeva.digitalocean.pojo.Base
getLinks, getMeta, setLinks, setMetaMethods inherited from class com.myjeeva.digitalocean.pojo.RateLimitBase
getRateLimit, setRateLimit
-
Constructor Details
-
HealthCheck
public HealthCheck()
-
-
Method Details
-
toString
-
getProtocol
- Returns:
- the protocol
-
setProtocol
- Parameters:
protocol- the protocol to set
-
getPort
- Returns:
- the port
-
setPort
- Parameters:
port- the entry port to set
-
getPath
- Returns:
- the path
-
setPath
- Parameters:
path- the path to set
-
getHealthyThreshold
- Returns:
- the number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool
-
setHealthyThreshold
- Parameters:
healthyThreshold- the number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool
-
getUnhealthyThreshold
- Returns:
- the number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool.
-
setUnhealthyThreshold
- Parameters:
unhealthyThreshold- the number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool.
-
getResponseTimeoutInSeconds
- Returns:
- the number of seconds the Load Balancer instance will wait for a response until marking a health check as failed.
-
setResponseTimeoutInSeconds
- Parameters:
responseTimeoutInSeconds- the number of seconds the Load Balancer instance will wait for a response until marking a health check as failed.
-
getCheckIntervalInSeconds
- Returns:
- number of seconds between two consecutive health checks
-
setCheckIntervalInSeconds
- Parameters:
checkIntervalInSeconds- the number of seconds between two consecutive health checks to set
-