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

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

public class HealthMonitor
extends Object

The load balancing service includes a health monitoring operation which periodically checks your back-end nodes to ensure they are responding correctly. If a node is not responding, it is removed from rotation until the health monitor determines that the node is functional. In addition to being performed periodically, the health check also is performed against every node that is added to ensure that the node is operating properly before allowing it to service traffic. Only one health monitor is allowed to be enabled on a load balancer at a time.

As part of your strategy for monitoring connections, you should consider defining secondary nodes that provide failover for effectively routing traffic in case the primary node fails. This is an additional feature that will ensure you remain up in case your primary node fails.


Nested Class Summary
static class HealthMonitor.Builder
           
static class HealthMonitor.Type
          Every health monitor has a type attribute to signify what kind of monitor it is.
 
Constructor Summary
protected HealthMonitor(HealthMonitor.Type type, int delay, int timeout, int attemptsBeforeDeactivation, String bodyRegex, String statusRegex, String path, String hostHeader)
           
 
Method Summary
static HealthMonitor.Builder builder()
           
 boolean equals(Object obj)
           
 int getAttemptsBeforeDeactivation()
           
 com.google.common.base.Optional<String> getBodyRegex()
           
 int getDelay()
           
 com.google.common.base.Optional<String> getHostHeader()
           
 com.google.common.base.Optional<String> getPath()
           
 com.google.common.base.Optional<String> getStatusRegex()
           
 int getTimeout()
           
 HealthMonitor.Type getType()
           
 int hashCode()
           
 boolean isValid()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 HealthMonitor.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HealthMonitor

@ConstructorProperties(value={"type","delay","timeout","attemptsBeforeDeactivation","bodyRegex","statusRegex","path","hostHeader"})
protected HealthMonitor(HealthMonitor.Type type,
                                                   int delay,
                                                   int timeout,
                                                   int attemptsBeforeDeactivation,
                                                   @Nullable
                                                   String bodyRegex,
                                                   @Nullable
                                                   String statusRegex,
                                                   @Nullable
                                                   String path,
                                                   @Nullable
                                                   String hostHeader)
Method Detail

getType

public HealthMonitor.Type getType()

getDelay

public int getDelay()

getTimeout

public int getTimeout()

getAttemptsBeforeDeactivation

public int getAttemptsBeforeDeactivation()

getBodyRegex

public com.google.common.base.Optional<String> getBodyRegex()

getStatusRegex

public com.google.common.base.Optional<String> getStatusRegex()

getPath

public com.google.common.base.Optional<String> getPath()

getHostHeader

public com.google.common.base.Optional<String> getHostHeader()

isValid

public boolean isValid()
Returns:
true if this HealthMonitor is valid, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

builder

public static HealthMonitor.Builder builder()

toBuilder

public HealthMonitor.Builder toBuilder()


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