Enum ExternalAddressSelectionMode
- java.lang.Object
-
- java.lang.Enum<ExternalAddressSelectionMode>
-
- com.opencloud.slee.resources.sis.management.ExternalAddressSelectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ExternalAddressSelectionMode>
public enum ExternalAddressSelectionMode extends Enum<ExternalAddressSelectionMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_STANDBY
The SIS will use the first address in the list unless a failure occurs, in which case it will attempt to use the next address, and so on for all available addresses.LOAD_SHARE
The SIS will attempt to keep the number of active sessions per address approximately equal.ROUND_ROBIN
The SIS will iteratively select each address once in turn before recycling back to the first address.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExternalAddressSelectionMode
fromString(String s)
Get an ExternalAddressSelectionMode enum from its name.static ExternalAddressSelectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExternalAddressSelectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROUND_ROBIN
public static final ExternalAddressSelectionMode ROUND_ROBIN
The SIS will iteratively select each address once in turn before recycling back to the first address.
-
LOAD_SHARE
public static final ExternalAddressSelectionMode LOAD_SHARE
The SIS will attempt to keep the number of active sessions per address approximately equal.
-
ACTIVE_STANDBY
public static final ExternalAddressSelectionMode ACTIVE_STANDBY
The SIS will use the first address in the list unless a failure occurs, in which case it will attempt to use the next address, and so on for all available addresses.
-
-
Method Detail
-
values
public static ExternalAddressSelectionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExternalAddressSelectionMode c : ExternalAddressSelectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExternalAddressSelectionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static ExternalAddressSelectionMode fromString(String s)
Get an ExternalAddressSelectionMode enum from its name.- Parameters:
s
- the enum's name (case insensitive).- Returns:
- the ExternalAddressSelectionMode enum.
- Throws:
IllegalArgumentException
- ifs
is not a valid enum name.
-
-