Class LbConfigHelper
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.helper.LbConfigHelper
-
public class LbConfigHelper extends Object
Export support class- Author:
- Kshitiz Saxena
-
-
Constructor Summary
Constructors Constructor Description LbConfigHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
exportOtdProperties(LoadbalancerReader lbRdr, OutputStream out)
exports the otd.properties from the config to the outputstream providedstatic void
exportWorkerProperties(LoadbalancerReader lbRdr, OutputStream out)
exports the workser.properties from the config to the outputstream providedstatic void
exportXml(LoadbalancerReader lbRdr, OutputStream out)
exports the loadbalancer.xml from the config to the outputstream providedstatic LoadbalancerReader
getLbReader(Domain domain, ApplicationRegistry appRegistry, String lbConfigName)
exports the loadbalancer.xml from the config to the outputstream providedstatic LoadBalancer
getLoadBalancer(Domain domain, String lbName)
-
-
-
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
- ConfigContextlbConfigName
- name of lb-configout
- OutputStream into which the loadbalancer.xml is written- Throws:
Exception
-
getLoadBalancer
public static LoadBalancer getLoadBalancer(Domain domain, String lbName) throws Exception
- 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
- ConfigContextlbConfigName
- name of lb-configout
- 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
- ConfigContextlbConfigName
- name of lb-configout
- 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
- ConfigContextlbConfigName
- name of lb-config- Throws:
Exception
-
-