Examples of LbReaderException


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

                isFirstServer = isServer;
            } else {
                //Mix of standalone instances and clusters is not allowed
                if (isFirstServer^isServer) {
                    String msg = LbLogUtil.getStringManager().getString("MixofServerAndClusterNotSupported");
                    throw new LbReaderException(msg);
                }
            }
            if (isServer) {
                Server server = _domain.getServerNamed(name);
                //An instance within cluster is not allowed
                if(server.getCluster() != null){
                    String msg = LbLogUtil.getStringManager().getString("ServerPartofClusterNotSupported", name);
                    throw new LbReaderException(msg);
                }
                cls[i++] = new StandAloneClusterReaderImpl(_domain, _appRegistry, server);
            } else {
                Cluster cluster = _domain.getClusterNamed(name);
                if(cluster == null){
                    String msg = LbLogUtil.getStringManager().getString("ClusterorInstanceNotFound", name);
                    throw new LbReaderException(msg);
                }
                cls[i++] = new ClusterReaderImpl(_domain, _appRegistry, cluster);
            }
        }
        return cls;
View Full Code Here

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

            } else if (ref instanceof ClusterRef) {
                cls[i++] = new ClusterReaderImpl(_domain, _appRegistry,
                        (ClusterRef) ref);
            } else {
                String msg = LbLogUtil.getStringManager().getString("UnableToDetermineType", ref.getRef());
                throw new LbReaderException(msg);
            }
        }
        return cls;
    }
View Full Code Here

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

        _clusterRef = ref;

        try {
            if (!ClusterHelper.isACluster(ctx, ref.getRef())) {
                String msg = _strMgr.getString("ClusterNotFound", ref.getRef());
                throw new LbReaderException(msg);
            }
        } catch (ConfigException ce) {
            String msg = _strMgr.getString("ClusterNotFound", ref.getRef());
            throw new LbReaderException(msg, ce);
        }
    }
View Full Code Here

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

            refs = ClusterHelper.getApplicationReferences(_configCtx,
                    _clusterRef.getRef());
        } catch (ConfigException ce) {
            String msg = _strMgr.getString("ErrorFindingClusteredApplications",
                    _clusterRef.getRef());
            throw new LbReaderException(msg, ce);
        }

        return ClusterReaderHelper.getWebModules(_configCtx, refs,
            _clusterRef.getRef());
    }
View Full Code Here

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

        try {
            c = ServerHelper.getConfigForServer(_configCtx, sName);
        } catch (ConfigException ce) {
            String msg = _localStrMgr.getString("ConfigNotFound", sName);
            throw new LbReaderException(msg, ce);
        }

        // http-listeners
        HttpService httpSvc = c.getHttpService();
        HttpListener[] lstnrs = httpSvc.getHttpListener();
View Full Code Here

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

            String host = info.getHost();

            return host;
        } catch (Exception e) {
            String msg = _localStrMgr.getString("GetHostNameFailed");
            throw new LbReaderException(msg, e);
        }
    }
View Full Code Here

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

        _serverRef = ref;

        try {
            if (!ServerHelper.isServerStandAlone(ctx, ref.getRef())) {
                String msg = _strMgr.getString("ServerNotFound", ref.getRef());
                throw new LbReaderException(msg);
            }
        } catch (ConfigException ce) {
            String msg = _strMgr.getString("ServerNotFound", ref.getRef());
            throw new LbReaderException(msg, ce);
        }
    }
View Full Code Here

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

            refs = ServerHelper.getApplicationReferences(_configCtx,
                    _serverRef.getRef());
        } catch (ConfigException ce) {
            String msg = _strMgr.getString("ErrorFindingClusteredApplications",
                    _serverRef.getRef());
            throw new LbReaderException(msg, ce);
        }

        return ClusterReaderHelper.getWebModules(_configCtx, refs,
            _serverRef.getRef());
    }
View Full Code Here

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

            try {
                bean = ApplicationHelper.findApplication(_configCtx, name);
            } catch (ConfigException ce) {
                String msg = _strMgr.getString("ErrorFindingApplication", name,
                        target);
                throw new LbReaderException(msg, ce);
            }

            LocationHelper lhelper = new LocationHelper(_configCtx);

            if (bean instanceof WebModule) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.