org.glassfish.loadbalancer.admin.cli.helper
Class LbConfigHelper

java.lang.Object
  extended by org.glassfish.loadbalancer.admin.cli.helper.LbConfigHelper

public class LbConfigHelper
extends java.lang.Object

Export support class

Author:
Kshitiz Saxena

Constructor Summary
LbConfigHelper()
           
 
Method Summary
static void exportXml(LoadbalancerReader lbRdr, java.io.OutputStream out)
          exports the loadbalancer.xml from the config to the outputstream provided
static LoadbalancerReader getLbReader(Domain domain, ApplicationRegistry appRegistry, java.lang.String lbConfigName)
          exports the loadbalancer.xml from the config to the outputstream provided
static LoadBalancer getLoadBalancer(Domain domain, java.lang.String lbName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LbConfigHelper

public LbConfigHelper()
Method Detail

getLbReader

public static LoadbalancerReader getLbReader(Domain domain,
                                             ApplicationRegistry appRegistry,
                                             java.lang.String lbConfigName)
                                      throws java.lang.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:
java.lang.Exception

getLoadBalancer

public static LoadBalancer getLoadBalancer(Domain domain,
                                           java.lang.String lbName)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

exportXml

public static void exportXml(LoadbalancerReader lbRdr,
                             java.io.OutputStream out)
                      throws java.lang.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:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.