Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigChange


                return null;
            }
            String refType = null;
            Iterator iter = allChanges.iterator();
            while (iter.hasNext()) {
                ConfigChange change = (ConfigChange)iter.next();
                String xpath = adminEventCache.cleanXPath(change.getXPath());
                Iterator iter2 = refTypeXPathMap.entrySet().iterator();
                while (iter2.hasNext()) {
                    Map.Entry entry = (Map.Entry)iter2.next();
                    String xpath2 = (String)entry.getValue();
                    if (xpath != null && xpath.equals(xpath2)) {
View Full Code Here


          
        public synchronized ConfigChange addToConfigChangeList(String xpath, String attrName, String oldValue, String newValue) {
            //find xpath and add. else create new obj.
           if(!isAdministered) return null;
           
            ConfigChange cChange = null;
           
            try {
                if(oldValue == null && newValue == null) return null;
                if(oldValue != null && oldValue.equals(newValue)) return null;
               
View Full Code Here

                    String name,
                    ConfigBean cb) {
            //adds
            if(!isAdministered) return null;
           
            ConfigChange cChange = ConfigChangeFactory.createConfigAdd
                                        (parentXpath, childXpath, name, cb);
           
            configChangeList.add(cChange);
            persistConfigChanges();
            return cChange;
View Full Code Here

        }
       
        public synchronized ConfigChange addToConfigChangeList(String xpath) {
            if(!isAdministered) return null;
           
            ConfigChange cChange = null;
            if(!removeOtherConfigChanges(xpath)) {
                cChange = ConfigChangeFactory.createConfigDelete(xpath);
                configChangeList.add(cChange);
            }
View Full Code Here

      boolean ret = false;
            try {
                //Bug# 4884726 Begin
                final Iterator it = configChangeList.iterator();
                while (it.hasNext()) {
                    final ConfigChange cc = (ConfigChange)it.next();
                    if(xpath.indexOf(cc.getXPath()) >= 0) {
            if(cc instanceof ConfigAdd)
          ret = true;
                        it.remove();
                    }
                }
View Full Code Here

        }
       
        public synchronized ConfigChange addToConfigChangeList(String parentXpath, String name, Object cb, Object[] cbArray) {
            if(!isAdministered) return null;
           
            ConfigChange cChange = ConfigChangeFactory.createConfigSet(
                                parentXpath,
                                name,
                                cb,
                                cbArray);
            configChangeList.add(cChange);
View Full Code Here

        validateAllLastModified(configChangeList);
       
        boolean prev = enableLastModifiedCheck(false);
        try {
            for(int i = 0 ; i < configChangeList.size(); i++ ) {
                ConfigChange cc = (ConfigChange) configChangeList.get(i);
                try {
                    updateFromConfigChange(cc);
                } catch (Exception e) {
                    errList.add(cc);
                }
View Full Code Here

   
    private void validateAllLastModified(ArrayList arr) throws StaleWriteConfigException {
        if(arr == null || arr.size() == 0) return;
       
        for(int i = 0 ; i < arr.size(); i++ ) {
           ConfigChange cc = (ConfigChange) arr.get(i);
           validateLastModified(cc);
        }
    }
View Full Code Here

     */
    public AdminEvent[] generateElementChangeEventsFromChangeList(String instanceName, ArrayList changeList, ConfigContext domainContext)
    {
        ArrayList merged = new ArrayList();
        ArrayList events = new ArrayList();
        ConfigChange change, lastChange = null;
        for(int i=0; i<changeList.size(); i++)
        {
            change = (ConfigChange)changeList.get(i);

            // check if dynamic reconfig is needed for this config change
View Full Code Here

        boolean bLastEntryHasEvent = false;
        String propertyName = null;
       
        for(int i=0; i<changeList.size();i++)
        {
            ConfigChange change = (ConfigChange)changeList.get(i);
            int action = getActionCodeForChange(change);
            if(action==ElementChangeEvent.ACTION_ELEMENT_UNDEFINED)
                continue; //??? not add/set/update/delete
            String xpath = change.getXPath();
            // Check if this xpath belongs to one of the excluded
            // XPaths. Excluded xpaths include lb-configs, lb-config
            // etc. Where restart checks do not apply.
            if (  (xpath == null) || isXPathExcludedForRestartCheck(xpath) ) {
                continue;
            }
            if(!xpath.equals(xpath_last))
            {
                xpath_last = xpath;
                if(isPropertyXPath(change.getXPath()))
                {
                    propertyName = getConfigElementPrimaryKey(xpath);
                    xpath = getElementXPath(change);
                }
                else
View Full Code Here

TOP

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

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.