Class HealthCheck

All Implemented Interfaces:
Serializable

public class HealthCheck extends Base
Represents DigitalOcean Load Balancer health check object
Since:
v2.11
Author:
Thomas Lehoux (https://github.com/tlehoux)
See Also:
  • Constructor Details

    • HealthCheck

      public HealthCheck()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Base
    • getProtocol

      public Protocol getProtocol()
      Returns:
      the protocol
    • setProtocol

      public void setProtocol(Protocol protocol)
      Parameters:
      protocol - the protocol to set
    • getPort

      public Integer getPort()
      Returns:
      the port
    • setPort

      public void setPort(Integer port)
      Parameters:
      port - the entry port to set
    • getPath

      public String getPath()
      Returns:
      the path
    • setPath

      public void setPath(String path)
      Parameters:
      path - the path to set
    • getHealthyThreshold

      public Integer 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

      public void setHealthyThreshold(Integer healthyThreshold)
      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

      public Integer 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

      public void setUnhealthyThreshold(Integer unhealthyThreshold)
      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

      public Integer getResponseTimeoutInSeconds()
      Returns:
      the number of seconds the Load Balancer instance will wait for a response until marking a health check as failed.
    • setResponseTimeoutInSeconds

      public void setResponseTimeoutInSeconds(Integer responseTimeoutInSeconds)
      Parameters:
      responseTimeoutInSeconds - the number of seconds the Load Balancer instance will wait for a response until marking a health check as failed.
    • getCheckIntervalInSeconds

      public Integer getCheckIntervalInSeconds()
      Returns:
      number of seconds between two consecutive health checks
    • setCheckIntervalInSeconds

      public void setCheckIntervalInSeconds(Integer checkIntervalInSeconds)
      Parameters:
      checkIntervalInSeconds - the number of seconds between two consecutive health checks to set