Enum LBVersion
- java.lang.Object
-
- java.lang.Enum<LBVersion>
-
- unlimited.fc.client.engine.loadbalancer.LBVersion
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMstatic java.lang.StringNO_STICKYjava.lang.Stringv_stringstatic java.lang.StringWELCOME_MESSAGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringappendVersion(java.lang.String msg)java.lang.StringgetDelimitedMessage(java.lang.String... strings)static LBVersiongetFromString(java.lang.String version)static LBVersiongetLatestVersion()java.lang.StringgetLoadBalancedSiterString(java.lang.String host, int port, boolean isSSL)static LBVersiongetVersionFromWelcomeMessage(java.lang.String welcomeMessage)static java.lang.StringlbsToString(unlimited.core.util.common.FCSiteIfc site)<T extends unlimited.core.util.common.FCSiteIfc>
Tparse(java.lang.String info, unlimited.core.util.common.function.TriFunction<java.lang.String,java.lang.Integer,java.lang.Boolean,T> fact)static java.lang.String[]splitParamsIntoArray(java.lang.String info)static java.lang.StringtoStringNoVersion(unlimited.core.util.common.FCSiteIfc site)static LBVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LBVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V_LEGACY
public static final LBVersion V_LEGACY
First iteration of the load balancer. Core functionality was in place, but the application did not have proper versioning between client and the load balancer Server
-
V_1
public static final LBVersion V_1
Second iteration introduced in 3.8.6. Client and load balancer now properly negotiate version between the two resources. Also includes sticky sessions
-
-
Field Detail
-
v_string
public final java.lang.String v_string
-
DELIM
public static final java.lang.String DELIM
- See Also:
- Constant Field Values
-
NO_STICKY
public static final java.lang.String NO_STICKY
- See Also:
- Constant Field Values
-
WELCOME_MESSAGE
public static final java.lang.String WELCOME_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LBVersion[] 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 (LBVersion c : LBVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LBVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
parse
public <T extends unlimited.core.util.common.FCSiteIfc> T parse(java.lang.String info, unlimited.core.util.common.function.TriFunction<java.lang.String,java.lang.Integer,java.lang.Boolean,T> fact)
-
splitParamsIntoArray
public static java.lang.String[] splitParamsIntoArray(java.lang.String info)
-
getLoadBalancedSiterString
public java.lang.String getLoadBalancedSiterString(java.lang.String host, int port, boolean isSSL) throws LoadBalancerConnectionParserException
-
getFromString
public static LBVersion getFromString(java.lang.String version)
-
lbsToString
public static java.lang.String lbsToString(unlimited.core.util.common.FCSiteIfc site)
-
toStringNoVersion
public static java.lang.String toStringNoVersion(unlimited.core.util.common.FCSiteIfc site)
- Parameters:
site-- Returns:
-
appendVersion
public java.lang.String appendVersion(java.lang.String msg)
-
getVersionFromWelcomeMessage
public static LBVersion getVersionFromWelcomeMessage(java.lang.String welcomeMessage)
-
getLatestVersion
public static LBVersion getLatestVersion()
-
getDelimitedMessage
public java.lang.String getDelimitedMessage(java.lang.String... strings)
-
-