Enum LBVersion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LBVersion>

    public enum LBVersion
    extends java.lang.Enum<LBVersion>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      V_1
      Second iteration introduced in 3.8.6.
      V_LEGACY
      First iteration of the load balancer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DELIM  
      static java.lang.String NO_STICKY  
      java.lang.String v_string  
      static java.lang.String WELCOME_MESSAGE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String appendVersion​(java.lang.String msg)  
      java.lang.String getDelimitedMessage​(java.lang.String... strings)  
      static LBVersion getFromString​(java.lang.String version)  
      static LBVersion getLatestVersion()  
      java.lang.String getLoadBalancedSiterString​(java.lang.String host, int port, boolean isSSL)  
      static LBVersion getVersionFromWelcomeMessage​(java.lang.String welcomeMessage)  
      static java.lang.String lbsToString​(unlimited.core.util.common.FCSiteIfc site)  
      <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)  
      static java.lang.String[] splitParamsIntoArray​(java.lang.String info)  
      static java.lang.String toStringNoVersion​(unlimited.core.util.common.FCSiteIfc site)  
      static LBVersion valueOf​(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.
      • 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

      • 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
    • 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 name
        java.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)
      • 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)