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 writtenException
public static LoadBalancer getLoadBalancer(Domain domain, String lbName) throws Exception
Exception
public static void exportXml(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx
- ConfigContextlbConfigName
- name of lb-configout
- OutputStream into which the loadbalancer.xml is writtenException
public static void exportWorkerProperties(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx
- ConfigContextlbConfigName
- name of lb-configout
- OutputStream into which the loadbalancer.xml is writtenException
public static void exportOtdProperties(LoadbalancerReader lbRdr, OutputStream out) throws Exception
ctx
- ConfigContextlbConfigName
- name of lb-configException
Copyright © 2018. All rights reserved.