Package org.glassfish.loadbalancer.admin.cli.reader.api

Examples of org.glassfish.loadbalancer.admin.cli.reader.api.WebModuleReader


        for(int i=0;i<clusterReaders.length;i++) {
            String clusterWorkerList = "";
            ClusterReader clusterReader = clusterReaders[i];
            String clusterName = clusterReader.getName();
            WebModuleReader webmoduleReaders[] = clusterReader.getWebModules();
            InstanceReader instanceReaders[] = clusterReader.getInstances();

            for(int j =0; j<instanceReaders.length;j++) {
                InstanceReader instanceReader = instanceReaders[j];
                String listenerHost = "";
View Full Code Here


        for(int i=0;i<clusterReaders.length;i++) {
            StringBuffer clusterHostList = new StringBuffer();
            String clusterWebList = "";
            ClusterReader clusterReader = clusterReaders[i];
            String clusterName = clusterReader.getName();
            WebModuleReader webmoduleReaders[] = clusterReader.getWebModules();
            InstanceReader instanceReaders[] = clusterReader.getInstances();

            for(int j =0; j<instanceReaders.length;j++) {
                InstanceReader instanceReader = instanceReaders[j];
                String listenerHost = "";
View Full Code Here

     */
    @Override
    public void visit(BaseReader br) throws Exception {
        // FIXME, make as assert here about no class cast exception
    if (br instanceof BaseReader) {
      WebModuleReader wRdr = (WebModuleReader) br;

      _w.setContextRoot(wRdr.getContextRoot());

      String url = wRdr.getErrorUrl();
      if ((url != null) && (!"".equals(url))) {
        // XXX start of bug fix for 6171814
        _c.createAttribute(Cluster.WEB_MODULE, "error-url", "ErrorUrl",
            AttrProp.CDATA, null, "");
        // XXX end of bug fix for 6171814
        _w.setErrorUrl(wRdr.getErrorUrl());
      }

      _w.setEnabled(Boolean.toString(wRdr.getLbEnabled()));

      _w.setDisableTimeoutInMinutes(wRdr.getDisableTimeoutInMinutes());

      IdempotentUrlPatternReader[] iRdrs = wRdr.getIdempotentUrlPattern();

      if ((iRdrs != null) && (iRdrs.length > 0)) {
        for (int i = 0; i < iRdrs.length; i++) {
          iRdrs[i].accept(new IdempotentUrlPatternVisitor(_w, i));
        }
View Full Code Here

     * Visit reader class
     */
    @Override
    public void visit(BaseReader br) throws Exception {
        // FIXME, make as assert here about no class cast exception
        WebModuleReader wRdr = (WebModuleReader) br;

        _w.setContextRoot(wRdr.getContextRoot());

        String url = wRdr.getErrorUrl();
        if ((url != null) && (!"".equals(url))) {
            // XXX start of bug fix for 6171814
            _c.createAttribute(Cluster.WEB_MODULE, "error-url", "ErrorUrl",
                    AttrProp.CDATA,
                    null, "");
            // XXX end of bug fix for 6171814
            _w.setErrorUrl(wRdr.getErrorUrl());
        }

        _w.setEnabled(Boolean.toString(wRdr.getLbEnabled()));

        _w.setDisableTimeoutInMinutes(wRdr.getDisableTimeoutInMinutes());

        IdempotentUrlPatternReader[] iRdrs = wRdr.getIdempotentUrlPattern();

        if ((iRdrs != null) && (iRdrs.length > 0)) {
            for (int i = 0; i < iRdrs.length; i++) {
                iRdrs[i].accept(new IdempotentUrlPatternVisitor(_w, i));
            }
View Full Code Here

            while (bundleDescriptorIter.hasNext()) {
                BundleDescriptor bundleDescriptor = bundleDescriptorIter.next();
                try{
                if (bundleDescriptor instanceof WebBundleDescriptor) {
                    WebModuleReader wmr = new WebModuleReaderImpl(appName, refferedApps.get(appName),
                            app, (WebBundleDescriptor) bundleDescriptor);
                    if(!contextRoots.contains(wmr.getContextRoot())){
                        contextRoots.add(wmr.getContextRoot());
                        list.add(wmr);
                    }
                } else if (bundleDescriptor instanceof EjbBundleDescriptor) {
                    EjbBundleDescriptor ejbBundleDescriptor = (EjbBundleDescriptor) bundleDescriptor;
                    if (!ejbBundleDescriptor.hasWebServices()) {
View Full Code Here

        for(int i=0;i<clusterReaders.length;i++) {
            String clusterWorkerList = "";
            ClusterReader clusterReader = clusterReaders[i];
            String clusterName = clusterReader.getName();
            WebModuleReader webmoduleReaders[] = clusterReader.getWebModules();
            InstanceReader instanceReaders[] = clusterReader.getInstances();

            for(int j =0; j<instanceReaders.length;j++) {
                InstanceReader instanceReader = instanceReaders[j];
                String listenerHost = "";
View Full Code Here

        for(int i=0;i<clusterReaders.length;i++) {
            String clusterHostList = "";
            String clusterWebList = "";
            ClusterReader clusterReader = clusterReaders[i];
            String clusterName = clusterReader.getName();
            WebModuleReader webmoduleReaders[] = clusterReader.getWebModules();
            InstanceReader instanceReaders[] = clusterReader.getInstances();

            for(int j =0; j<instanceReaders.length;j++) {
                InstanceReader instanceReader = instanceReaders[j];
                String listenerHost = "";
View Full Code Here

TOP

Related Classes of org.glassfish.loadbalancer.admin.cli.reader.api.WebModuleReader

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.