Package com.sun.enterprise.ee.admin.lbadmin.reader.api

Examples of com.sun.enterprise.ee.admin.lbadmin.reader.api.LbReaderException


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

        HttpService httpSvc = c.getHttpService();
        HttpListener[] lstnrs = httpSvc.getHttpListener();
        for (int i=0; i < lstnrs.length; i++) {
View Full Code Here


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

            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

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

                WebModule wMod = (WebModule) bean;
View Full Code Here

        _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

                servers = ServerHelper.getServersInCluster(
                                _configCtx, _clusterRef.getRef());
            } catch (ConfigException ce) {
                String msg = _strMgr.getString("ErrorFindingClusteredServers",
                                            _clusterRef.getRef());
                throw new LbReaderException(msg, ce);
            }
        InstanceReader[] readers = null;

        if (servers != null) {
            readers = new InstanceReader[servers.length];
View Full Code Here

            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

TOP

Related Classes of com.sun.enterprise.ee.admin.lbadmin.reader.api.LbReaderException

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.