public class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> extends Object implements Comparable<BaseLoadBalancer<N,T>>
Modifier and Type | Class and Description |
---|---|
static class |
BaseLoadBalancer.Algorithm
All load balancers utilize an algorithm that defines how traffic should be directed between
back-end nodes.
|
static class |
BaseLoadBalancer.Builder<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> |
Modifier and Type | Field and Description |
---|---|
protected BaseLoadBalancer.Algorithm |
algorithm |
protected Map<String,Boolean> |
connectionLogging |
protected ConnectionThrottle |
connectionThrottle |
protected Boolean |
halfClosed |
protected HealthMonitor |
healthMonitor |
protected String |
name |
protected SortedSet<N> |
nodes |
protected Integer |
port |
protected String |
protocol |
protected Map<String,SessionPersistence> |
sessionPersistence |
protected Integer |
timeout |
static BaseLoadBalancer.Algorithm[] |
WEIGHTED_ALGORITHMS |
Modifier | Constructor and Description |
---|---|
protected |
BaseLoadBalancer() |
|
BaseLoadBalancer(String name,
String protocol,
Integer port,
Iterable<N> nodes,
BaseLoadBalancer.Algorithm algorithm,
Integer timeout,
Boolean halfClosed,
Map<String,SessionPersistence> sessionPersistence,
Map<String,Boolean> connectionLogging,
ConnectionThrottle connectionThrottle,
HealthMonitor healthMonitor) |
Modifier and Type | Method and Description |
---|---|
static <N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> |
builder() |
int |
compareTo(BaseLoadBalancer<N,T> arg0) |
boolean |
equals(Object obj) |
BaseLoadBalancer.Algorithm |
getAlgorithm() |
ConnectionThrottle |
getConnectionThrottle() |
HealthMonitor |
getHealthMonitor() |
String |
getName() |
Set<N> |
getNodes() |
Integer |
getPort() |
String |
getProtocol() |
SessionPersistence |
getSessionPersistenceType() |
Integer |
getTimeout() |
int |
hashCode() |
boolean |
isConnectionLogging() |
Boolean |
isHalfClosed() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
BaseLoadBalancer.Builder<N,T> |
toBuilder() |
String |
toString() |
public static BaseLoadBalancer.Algorithm[] WEIGHTED_ALGORITHMS
protected String name
protected String protocol
protected Integer port
protected BaseLoadBalancer.Algorithm algorithm
protected Integer timeout
protected Boolean halfClosed
protected Map<String,SessionPersistence> sessionPersistence
protected ConnectionThrottle connectionThrottle
protected HealthMonitor healthMonitor
protected BaseLoadBalancer()
public BaseLoadBalancer(String name, @Nullable String protocol, @Nullable Integer port, Iterable<N> nodes, @Nullable BaseLoadBalancer.Algorithm algorithm, @Nullable Integer timeout, @Nullable Boolean halfClosed, @Nullable Map<String,SessionPersistence> sessionPersistence, @Nullable Map<String,Boolean> connectionLogging, @Nullable ConnectionThrottle connectionThrottle, @Nullable HealthMonitor healthMonitor)
public int compareTo(BaseLoadBalancer<N,T> arg0)
compareTo
in interface Comparable<BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>>
public String getName()
@Nullable public String getProtocol()
@Nullable public Integer getPort()
@Nullable public BaseLoadBalancer.Algorithm getAlgorithm()
@Nullable public Integer getTimeout()
@Nullable public Boolean isHalfClosed()
@Nullable public SessionPersistence getSessionPersistenceType()
public boolean isConnectionLogging()
@Nullable public ConnectionThrottle getConnectionThrottle()
@Nullable public HealthMonitor getHealthMonitor()
protected com.google.common.base.Objects.ToStringHelper string()
public static <N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> BaseLoadBalancer.Builder<N,T> builder()
public BaseLoadBalancer.Builder<N,T> toBuilder()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.