public static class BaseLoadBalancer.Builder<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> extends Object
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 Set<N> |
nodes |
protected Integer |
port |
protected String |
protocol |
protected Map<String,SessionPersistence> |
sessionPersistence |
protected Integer |
timeout |
Constructor and Description |
---|
BaseLoadBalancer.Builder() |
Modifier and Type | Method and Description |
---|---|
BaseLoadBalancer.Builder<N,T> |
algorithm(BaseLoadBalancer.Algorithm algorithm)
Algorithm that defines how traffic should be directed between back-end nodes.
|
BaseLoadBalancer<N,T> |
build() |
BaseLoadBalancer.Builder<N,T> |
connectionLogging(Boolean connectionLogging)
Current connection logging configuration.
|
BaseLoadBalancer.Builder<N,T> |
connectionThrottle(ConnectionThrottle connectionThrottle)
Specifies limits on the number of connections per IP address to help mitigate malicious or abusive
traffic to your applications.
|
BaseLoadBalancer.Builder<N,T> |
from(T baseLB) |
BaseLoadBalancer.Builder<N,T> |
halfClosed(Boolean halfClosed)
Enable or Disable Half-Closed support for the load balancer.
|
BaseLoadBalancer.Builder<N,T> |
healthMonitor(HealthMonitor healthMonitor)
The type of health monitor check to perform to ensure that the service is performing properly.
|
BaseLoadBalancer.Builder<N,T> |
name(String name)
Required.
|
BaseLoadBalancer.Builder<N,T> |
node(N node) |
BaseLoadBalancer.Builder<N,T> |
nodes(Iterable<N> nodes)
Required.
|
BaseLoadBalancer.Builder<N,T> |
port(Integer port)
Required if the protocol being used is not in
ReportApi.listProtocols() or the protocol is in
ReportApi.listProtocols() but port=0. |
BaseLoadBalancer.Builder<N,T> |
protocol(String protocol)
Required.
|
BaseLoadBalancer.Builder<N,T> |
sessionPersistenceType(SessionPersistence sessionPersistenceType)
Specifies whether multiple requests from clients are directed to the same node.
|
BaseLoadBalancer.Builder<N,T> |
timeout(Integer timeout)
The timeout value for the load balancer and communications with its nodes.
|
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
public BaseLoadBalancer.Builder<N,T> name(String name)
public BaseLoadBalancer.Builder<N,T> protocol(String protocol)
ReportApi.listProtocols()
public BaseLoadBalancer.Builder<N,T> port(@Nullable Integer port)
ReportApi.listProtocols()
or the protocol is in
ReportApi.listProtocols()
but port=0. Port number for the service you are load balancing.public BaseLoadBalancer.Builder<N,T> nodes(Iterable<N> nodes)
public BaseLoadBalancer.Builder<N,T> node(N node)
public BaseLoadBalancer.Builder<N,T> algorithm(@Nullable BaseLoadBalancer.Algorithm algorithm)
BaseLoadBalancer.Algorithm
public BaseLoadBalancer.Builder<N,T> timeout(@Nullable Integer timeout)
public BaseLoadBalancer.Builder<N,T> halfClosed(@Nullable Boolean halfClosed)
public BaseLoadBalancer.Builder<N,T> sessionPersistenceType(@Nullable SessionPersistence sessionPersistenceType)
SessionPersistence
public BaseLoadBalancer.Builder<N,T> connectionLogging(@Nullable Boolean connectionLogging)
public BaseLoadBalancer.Builder<N,T> connectionThrottle(@Nullable ConnectionThrottle connectionThrottle)
ConnectionThrottle
public BaseLoadBalancer.Builder<N,T> healthMonitor(@Nullable HealthMonitor healthMonitor)
HealthMonitor
public BaseLoadBalancer<N,T> build()
public BaseLoadBalancer.Builder<N,T> from(T baseLB)
Copyright © 2009-2013 jclouds. All Rights Reserved.