public class HealthMonitor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HealthMonitor.Builder |
static class |
HealthMonitor.Type
Every health monitor has a type attribute to signify what kind of monitor it is.
|
Modifier | Constructor and Description |
---|---|
protected |
HealthMonitor(HealthMonitor.Type type,
int delay,
int timeout,
int attemptsBeforeDeactivation,
String bodyRegex,
String statusRegex,
String path,
String hostHeader) |
Modifier and Type | Method and 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.Objects.ToStringHelper |
string() |
HealthMonitor.Builder |
toBuilder() |
String |
toString() |
@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)
public HealthMonitor.Type getType()
public int getDelay()
public int getTimeout()
public int getAttemptsBeforeDeactivation()
public com.google.common.base.Optional<String> getBodyRegex()
public com.google.common.base.Optional<String> getStatusRegex()
public com.google.common.base.Optional<String> getPath()
public com.google.common.base.Optional<String> getHostHeader()
public boolean isValid()
protected com.google.common.base.Objects.ToStringHelper string()
public static HealthMonitor.Builder builder()
public HealthMonitor.Builder toBuilder()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.