org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class HealthMonitor.Builder

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor.Builder
Enclosing class:
HealthMonitor

public static class HealthMonitor.Builder
extends Object


Constructor Summary
HealthMonitor.Builder()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthMonitor.Builder

public HealthMonitor.Builder()
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)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.