Package org.jvnet.glassfish.comms.admin.clbadmin.reader.api

Examples of org.jvnet.glassfish.comms.admin.clbadmin.reader.api.ClusterReader


        if (((clsRefs == null) || (clsRefs.length == 0)) &&
                ((sRefs == null) || (sRefs.length == 0))) {
            return null;
        }

        ClusterReader cRdr = null;

        for (int i = 0; i < clsRefs.length; i++) {
            cRdr = new ClusterReaderImpl(_ctx,
                    _clbConfig.getConvergedLbClusterRef(i));
            list.add(cRdr);
View Full Code Here


    /**
     * Visit reader class
     */
    public void visit(BaseReader br) {
        // FIXME, make as assert here about no class cast exception
        ClusterReader cRdr = (ClusterReader) br;

        try {
            _c.setName(cRdr.getName());
            _c.setSelfLoadbalance(cRdr.getSelfLoadbalance());
        } catch (LbReaderException le) {
            // XXX ignore
        }

        InstanceReader[] iRdrs = null;

        try {
            iRdrs = cRdr.getInstances();
        } catch (LbReaderException le) {
            // should we throw this exception XXX ???
            // or fill in with default values
        }

        if ((iRdrs != null) && (iRdrs.length > 0)) {
            Instance ins = null;

            for (int i = 0; i < iRdrs.length; i++) {
                ins = new Instance();
                iRdrs[i].accept(new InstanceVisitor(ins));
                _c.addInstance(ins);
            }
        }

        WebModuleReader[] wRdrs = null;

        try {
            wRdrs = cRdr.getWebModules();
        } catch (LbReaderException le) {
            // XXX ignore
        }

        if ((wRdrs != null) && (wRdrs.length > 0)) {
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.admin.clbadmin.reader.api.ClusterReader

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.