Package org.jvnet.glassfish.comms.admin.clbadmin.transform

Examples of org.jvnet.glassfish.comms.admin.clbadmin.transform.LoadbalancerVisitor


    public String getDcrFile() throws LbReaderException {
        return _clbConfig.getConvergedLbPolicy().getDcrFile();
    }

    public void accept(Visitor v) {
        LoadbalancerVisitor lv = (LoadbalancerVisitor) v;
        lv.visit(this);
    }
View Full Code Here


            out = new FileOutputStream(filePath);

            // tranform the data using visitor pattern
            Loadbalancer _lb = new Loadbalancer();

            LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
            lbr.accept(lbVstr);

            ObjectFactory clbFactory = new ObjectFactory();
            clbFactory.store(_lb, out);
            out.flush();
View Full Code Here

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            LoadbalancerReader lbr = _clbp.getLbReader(_ctx, _name);
            // tranform the data using visitor pattern
            Loadbalancer _lb = new Loadbalancer();
            LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
            lbr.accept(lbVstr);
            ObjectFactory clbFactory = new ObjectFactory();
            clbFactory.store(_lb, baos);
        } catch (Exception e) {
            System.out.println(e.getMessage());
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.admin.clbadmin.transform.LoadbalancerVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.