Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigUpdate


            new ArrayList<ConfigChange>();
        for(int i=changeList.size()-1; i>=0; i--)
        {
            if ( changeList.get(i) instanceof ConfigUpdate)
                {
                    ConfigUpdate update = (ConfigUpdate)changeList.get(i);
                    String enableStr = update.getNewValue(ServerTags.ENABLED);
                    if (enableStr != null) {
                        enableConfigChangeList.add(
                            (ConfigChange)changeList.remove(i));
                    }
                }
View Full Code Here


                }
            }
        }
        iter = updates.iterator();
        while (iter.hasNext()) {
            ConfigUpdate update = (ConfigUpdate)iter.next();
            configContext.updateFromConfigChange(update);
        }
    }
View Full Code Here

       
        System.out.println("oldCtx: " + event.getOldConfigContext());
        System.out.println("newCtx: " + event.getConfigContext());
        ArrayList configChangeList = event.getConfigChangeList();
        for(int i=0; i<configChangeList.size(); i++) {
            ConfigUpdate nextConfigUpdate = (ConfigUpdate)configChangeList.get(i);
            String nextAttrName = nextConfigUpdate.getName();
            System.out.println("name[" + i + "]=" + nextAttrName);
            System.out.println(nextAttrName + ":oldval:" + nextConfigUpdate.getOldValue(nextAttrName));
            System.out.println(nextAttrName + ":newval:" + nextConfigUpdate.getNewValue(nextAttrName));
        }
        ServerConfigLookup lookup = new ServerConfigLookup();
        System.out.println("old value-health-check-enabled: " + lookup.getHadbHealthCheckFromConfig());              
        ServerConfigLookup lookup2 = new ServerConfigLookup(event.getConfigContext());
        System.out.println("new value-health-check-enabled: " + lookup2.getHadbHealthCheckFromConfigDynamic());
View Full Code Here

                                       new Object[] {new String[] {cfg.getName() + ".availability-service.converged-load-balancer.config-file=" + configFileNewValue}},
                                       types);
                           AdminContext _adminContext = AdminService.getAdminService().getAdminContext();
                           String instanceName = _adminContext.getServerName();
                           String xpathCLB = "/domain/configs/config[@name='" + cfg.getName() + "']/availability-service/converged-load-balancer";
                           ConfigUpdate cfgUpdate = ConfigChangeFactory.createConfigUpdate(xpathCLB,
                                    "config-file", configFileOldValue, configFileNewValue);
                           ArrayList cfgList = new ArrayList<ConfigChange>();
                           cfgList.add(cfgUpdate);         
                           ElementChangeHelper elementHelper = new ElementChangeHelper();
                           AdminEvent[] elementChangeEvents = elementHelper.generateElementChangeEventsFromChangeList(instanceName, cfgList, ctx);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigUpdate

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.