public static enum LoadBalancerRule.Algorithm extends Enum<LoadBalancerRule.Algorithm>
Enum Constant and Description |
---|
LEASTCONN |
ROUNDROBIN |
SOURCE |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static LoadBalancerRule.Algorithm |
fromValue(String algorithm) |
String |
toString() |
static LoadBalancerRule.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadBalancerRule.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalancerRule.Algorithm SOURCE
public static final LoadBalancerRule.Algorithm ROUNDROBIN
public static final LoadBalancerRule.Algorithm LEASTCONN
public static final LoadBalancerRule.Algorithm UNRECOGNIZED
public static LoadBalancerRule.Algorithm[] values()
for (LoadBalancerRule.Algorithm c : LoadBalancerRule.Algorithm.values()) System.out.println(c);
public static LoadBalancerRule.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 nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<LoadBalancerRule.Algorithm>
public static LoadBalancerRule.Algorithm fromValue(String algorithm)
Copyright © 2009-2012 jclouds. All Rights Reserved.