Class HealthMonitor
java.lang.Object
org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor
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 ClassesModifier and TypeClassDescriptionstatic class
static enum
Every health monitor has a type attribute to signify what kind of monitor it is. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HealthMonitor
(HealthMonitor.Type type, int delay, int timeout, int attemptsBeforeDeactivation, String bodyRegex, String statusRegex, String path, String hostHeader) -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthMonitor.Builder
builder()
boolean
int
com.google.common.base.Optional
<String> int
getDelay()
com.google.common.base.Optional
<String> com.google.common.base.Optional
<String> getPath()
com.google.common.base.Optional
<String> int
getType()
int
hashCode()
boolean
isValid()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Constructor Details
-
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 Details
-
getType
-
getDelay
public int getDelay() -
getTimeout
public int getTimeout() -
getAttemptsBeforeDeactivation
public int getAttemptsBeforeDeactivation() -
getBodyRegex
-
getStatusRegex
-
getPath
-
getHostHeader
-
isValid
public boolean isValid()- Returns:
- true if this HealthMonitor is valid, false otherwise
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
builder
-
toBuilder
-