Class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
java.lang.Object
org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer<N,T>
- All Implemented Interfaces:
Comparable<BaseLoadBalancer<N,
T>>
- Direct Known Subclasses:
CreateLoadBalancer
,LoadBalancer
public class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
extends Object
implements Comparable<BaseLoadBalancer<N,T>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
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>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseLoadBalancer.Algorithm
protected ConnectionThrottle
protected Boolean
protected HealthMonitor
protected String
protected Integer
protected String
protected Map
<String, SessionPersistence> protected Integer
static final Collection
<BaseLoadBalancer.Algorithm> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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) -
Method Summary
Modifier and TypeMethodDescriptionstatic <N extends BaseNode<N>,
T extends BaseLoadBalancer<N, T>>
BaseLoadBalancer.Builder<N, T> builder()
int
compareTo
(BaseLoadBalancer<N, T> arg0) boolean
getName()
getNodes()
getPort()
int
hashCode()
boolean
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Field Details
-
WEIGHTED_ALGORITHMS
-
name
-
protocol
-
port
-
nodes
-
algorithm
-
timeout
-
halfClosed
-
sessionPersistence
-
connectionLogging
-
connectionThrottle
-
healthMonitor
-
-
Constructor Details
-
BaseLoadBalancer
protected BaseLoadBalancer() -
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)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<N extends BaseNode<N>>
-
getName
-
getProtocol
- Returns:
- protocol, which may be null if the load balancer is deleted.
-
getPort
- Returns:
- port, which may be null if port has not been set.
-
getNodes
-
getAlgorithm
- Returns:
- algorithm, which may be null if the load balancer is deleted.
-
getTimeout
- Returns:
- timeout, which may be null if no timeout has been set.
-
isHalfClosed
- Returns:
- halfClosed, which may be null if halfClosed has not been set.
-
getSessionPersistenceType
- Returns:
- sessionPersistenceType, which may be null if sessionPersistenceType has not been set.
-
isConnectionLogging
public boolean isConnectionLogging() -
getConnectionThrottle
- Returns:
- connectionThrottle, which may be null if connectionThrottle has not been set.
-
getHealthMonitor
- Returns:
- healthMonitor, which may be null if healthMonitor has not been set.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
hashCode
public int hashCode() -
equals
-
builder
public static <N extends BaseNode<N>,T extends BaseLoadBalancer<N, BaseLoadBalancer.Builder<N,T>> T> builder() -
toBuilder
-