Class HealthMonitor
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description 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
Constructors Modifier Constructor Description protected
HealthMonitor(HealthMonitor.Type type, int delay, int timeout, int attemptsBeforeDeactivation, String bodyRegex, String statusRegex, String path, String hostHeader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.MoreObjects.ToStringHelper
string()
HealthMonitor.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
HealthMonitor
@ConstructorProperties({"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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static HealthMonitor.Builder builder()
-
toBuilder
public HealthMonitor.Builder toBuilder()
-
-