public class LbConfigHelper extends Object
| Constructor and Description |
|---|
LbConfigHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exportOtdProperties(LoadbalancerReader lbRdr,
OutputStream out)
exports the otd.properties from the config to the outputstream provided
|
static void |
exportWorkerProperties(LoadbalancerReader lbRdr,
OutputStream out)
exports the workser.properties from the config to the outputstream provided
|
static void |
exportXml(LoadbalancerReader lbRdr,
OutputStream out)
exports the loadbalancer.xml from the config to the outputstream provided
|
static LoadbalancerReader |
getLbReader(Domain domain,
ApplicationRegistry appRegistry,
String lbConfigName)
exports the loadbalancer.xml from the config to the outputstream provided
|
static LoadBalancer |
getLoadBalancer(Domain domain,
String lbName) |
public static LoadbalancerReader getLbReader(Domain domain, ApplicationRegistry appRegistry, String lbConfigName) throws Exception
ctx - ConfigContextlbConfigName - name of lb-configout - OutputStream into which the loadbalancer.xml is writtenExceptionpublic static LoadBalancer getLoadBalancer(Domain domain, String lbName) throws Exception
Exceptionpublic static void exportXml(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx - ConfigContextlbConfigName - name of lb-configout - OutputStream into which the loadbalancer.xml is writtenExceptionpublic static void exportWorkerProperties(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx - ConfigContextlbConfigName - name of lb-configout - OutputStream into which the loadbalancer.xml is writtenExceptionpublic static void exportOtdProperties(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx - ConfigContextlbConfigName - name of lb-configExceptionCopyright © 2017. All rights reserved.