Class LbConfigHelper


  • public class LbConfigHelper
    extends Object
    Export support class
    Author:
    Kshitiz Saxena
    • Constructor Detail

      • LbConfigHelper

        public LbConfigHelper()
    • Method Detail

      • getLbReader

        public static LoadbalancerReader getLbReader​(Domain domain,
                                                     ApplicationRegistry appRegistry,
                                                     String lbConfigName)
                                              throws Exception
        exports the loadbalancer.xml from the config to the outputstream provided
        Parameters:
        ctx - ConfigContext
        lbConfigName - name of lb-config
        out - OutputStream into which the loadbalancer.xml is written
        Throws:
        Exception
      • exportXml

        public static void exportXml​(LoadbalancerReader lbRdr,
                                     OutputStream out)
                              throws Exception
        exports the loadbalancer.xml from the config to the outputstream provided
        Parameters:
        ctx - ConfigContext
        lbConfigName - name of lb-config
        out - OutputStream into which the loadbalancer.xml is written
        Throws:
        Exception
      • exportWorkerProperties

        public static void exportWorkerProperties​(LoadbalancerReader lbRdr,
                                                  OutputStream out)
                                           throws Exception
        exports the workser.properties from the config to the outputstream provided
        Parameters:
        ctx - ConfigContext
        lbConfigName - name of lb-config
        out - OutputStream into which the loadbalancer.xml is written
        Throws:
        Exception
      • exportOtdProperties

        public static void exportOtdProperties​(LoadbalancerReader lbRdr,
                                               OutputStream out)
                                        throws Exception
        exports the otd.properties from the config to the outputstream provided
        Parameters:
        ctx - ConfigContext
        lbConfigName - name of lb-config
        Throws:
        Exception