Class HealthMonitor.Builder
- java.lang.Object
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor.Builder
-
- Enclosing class:
- HealthMonitor
public static class HealthMonitor.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthMonitor.Builder
attemptsBeforeDeactivation(int attemptsBeforeDeactivation)
Required.HealthMonitor.Builder
bodyRegex(String bodyRegex)
Required (if using HTTP/S).HealthMonitor
build()
HealthMonitor.Builder
delay(int delay)
Required.HealthMonitor.Builder
from(HealthMonitor in)
HealthMonitor.Builder
hostHeader(String hostHeader)
Optional (if using HTTP/S).HealthMonitor.Builder
path(String path)
Required (if using HTTP/S).HealthMonitor.Builder
statusRegex(String statusRegex)
Required (if using HTTP/S).HealthMonitor.Builder
timeout(int timeout)
Required.HealthMonitor.Builder
type(HealthMonitor.Type type)
Type of the health monitor.
-
-
-
Method Detail
-
type
public HealthMonitor.Builder type(HealthMonitor.Type type)
Type of the health monitor. Must be specified as CONNECT to monitor connections.
-
delay
public HealthMonitor.Builder delay(int delay)
Required. The minimum number of seconds to wait before executing the health monitor. Must be a number between 1 and 3600.
-
timeout
public HealthMonitor.Builder timeout(int timeout)
Required. Maximum number of seconds to wait for a connection to be established before timing out. Must be a number between 1 and 300.
-
attemptsBeforeDeactivation
public HealthMonitor.Builder attemptsBeforeDeactivation(int attemptsBeforeDeactivation)
Required. Number of permissible monitor failures before removing a node from rotation. Must be a number between 1 and 10.
-
bodyRegex
public HealthMonitor.Builder bodyRegex(String bodyRegex)
Required (if using HTTP/S). A regular expression that will be used to evaluate the contents of the body of the response.
-
statusRegex
public HealthMonitor.Builder statusRegex(String statusRegex)
Required (if using HTTP/S). A regular expression that will be used to evaluate the HTTP status code returned in the response.
-
path
public HealthMonitor.Builder path(String path)
Required (if using HTTP/S). The HTTP path that will be used in the sample request.
-
hostHeader
public HealthMonitor.Builder hostHeader(String hostHeader)
Optional (if using HTTP/S). The name of a host for which the health monitors will check.
-
build
public HealthMonitor build()
-
from
public HealthMonitor.Builder from(HealthMonitor in)
-
-