| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LoadBalancer.Algorithm>
org.jclouds.cloudloadbalancers.domain.LoadBalancer.Algorithm
public static enum LoadBalancer.Algorithm
All load balancers utilize an algorithm that defines how traffic should be directed between back-end nodes. The default algorithm for newly created load balancers is RANDOM, which can be overridden at creation time or changed after the load balancer has been initially provisioned. The algorithm name is to be constant within a major revision of the load balancing API, though new algorithms may be created with a unique algorithm name within a given major revision of the service API.
| Enum Constant Summary | |
|---|---|
| LEAST_CONNECTIONSThe node with the lowest number of connections will receive requests. | |
| RANDOMBack-end servers are selected at random. | |
| ROUND_ROBINConnections are routed to each of the back-end servers in turn. | |
| UNRECOGNIZED | |
| WEIGHTED_LEAST_CONNECTIONSEach request will be assigned to a node based on the number of concurrent connections to the node and its weight. | |
| WEIGHTED_ROUND_ROBINA round robin algorithm, but with different proportions of traffic being directed to the back-end nodes. | |
| Method Summary | |
|---|---|
| static LoadBalancer.Algorithm | fromValue(String algorithm) | 
| static LoadBalancer.Algorithm | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static LoadBalancer.Algorithm[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final LoadBalancer.Algorithm LEAST_CONNECTIONS
public static final LoadBalancer.Algorithm RANDOM
public static final LoadBalancer.Algorithm ROUND_ROBIN
public static final LoadBalancer.Algorithm WEIGHTED_LEAST_CONNECTIONS
public static final LoadBalancer.Algorithm WEIGHTED_ROUND_ROBIN
public static final LoadBalancer.Algorithm UNRECOGNIZED
| Method Detail | 
|---|
public static LoadBalancer.Algorithm[] values()
for (LoadBalancer.Algorithm c : LoadBalancer.Algorithm.values()) System.out.println(c);
public static LoadBalancer.Algorithm valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static LoadBalancer.Algorithm fromValue(String algorithm)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||