Package com.sun.enterprise.ee.admin.lbadmin.writer

Examples of com.sun.enterprise.ee.admin.lbadmin.writer.LbConfigPublisher.publish()


                    lbs.getLoadBalancerByName(lbName);
            if(lb == null)
                throw new MBeanException(new Exception("No Loadbalancer configured by name " + lbName));
            configName = lb.getLbConfigName();
            LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lbName);
            lbp.publish();
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.ExportConfig", configName, lbName));
        } catch (Exception e) {
            String msg = _strMgr.getString("LbExportFailed",
                        configName, lbName);
View Full Code Here


                if(lb == null)
                    throw new Exception("No Loadbalancer configured by name " + lbName);
                configName = lb.getLbConfigName();
            }
            LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lbName);
            lbp.publish();
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.ExportConfig", configName, lbName));
        } catch (Exception e) {
            String msg = _strMgr.getString("LbExportFailed",
                        configName, lbName);
View Full Code Here

            for(com.sun.enterprise.config.serverbeans.LoadBalancer lb : lbs){
                if(lb == null)
                    throw new Exception("No Loadbalancers configured");
                if(lb.getLbConfigName().equals(configName)) {
                    LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lb.getName());
                    lbp.publish();
                    _logger.log(Level.INFO, _sMgr.getString(
                            "http_lb_admin.ExportConfig", configName, lb.getName()));
                }
            }
        } catch (Exception e) {
View Full Code Here

            for(com.sun.enterprise.config.serverbeans.LoadBalancer lb : lbs){
                if(lb == null)
                    throw new Exception(_strMgr.getString("NoLoadbalancersConfigured"));
                if(lb.getLbConfigName().equals(configName)) {
                    LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lb.getName());
                    lbp.publish();
                    _logger.log(Level.INFO, _sMgr.getString(
                            "http_lb_admin.ApplyChanges", lb.getName()));
                }
            }
        } catch (Exception e) {
View Full Code Here

                if(lb == null)
                    throw new Exception( _strMgr.getString("LbDoesNotExist", lbName));
                configName = lb.getLbConfigName();
            }
            LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lbName);
            lbp.publish();
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.ApplyChanges", lbName));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
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.