Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigAdd


     * @throws com.sun.enterprise.admin.event.AdminEventListenerException
     */
    public void handleCreate(ClusterChangeEvent clusterChangeEvent)
            throws AdminEventListenerException {
        List changeList = clusterChangeEvent.getConfigChangeList();
        ConfigAdd configAdd = (ConfigAdd) changeList.get(0);
        String xpath = configAdd.getXPath();
        String instanceName = getInstanceNameFromXPath(xpath);
        //TBD - if instance creation provides option to set lb-enabled
        //      then lb-enabled flag need to parsed and used instead
        //      till then using default value of false
        handler.onAdd(clusterName, instanceName, false);
View Full Code Here


    }

    public void handleCreate(IdentityAssertionTrustEvent ce) throws AdminEventListenerException {
        try {
            ConfigContext configContext = ce.getConfigContext();
            ConfigAdd configAdd = null;
            ArrayList configChangeList = ce.getConfigChangeList();
            String xpath = null;           
            Object object;
            Object configObject;

            for (int i = 0; i < configChangeList.size(); i++) {
                configObject = configChangeList.get(i);

                if (configObject instanceof ConfigAdd) {
                    configAdd = (ConfigAdd) configObject;
                    xpath = configAdd.getXPath();
                    object = configContext.exactLookup(xpath);
                    if (object instanceof IdentityAssertionTrust) {
                        IdentityAssertionTrust iat = (IdentityAssertionTrust) object;
                        PAssertedAuthenticator pa = new PAssertedAuthenticator(iat);
                        String key = iat.getId();
View Full Code Here

        }
        // xpath for this application
        String xpath = app.getXPath();

        // config change object for the application entry
        ConfigAdd configAdd = ConfigChangeFactory.createConfigAdd(_ctx, xpath);
        list.add(configAdd);

        // add resource adapter config
        ResourceAdapterConfig raConfig =
            findResourceAdapterConfigByName(applicationName);

        // if resource adapter config is found
        if (raConfig != null) {
            ConfigAdd raConfigChange =
                ConfigChangeFactory.createConfigAdd(_ctx, raConfig.getXPath());

            // add the resource adapter config to the dependent config changes
            list.add(raConfigChange);
        }
View Full Code Here

        if (res == null) {
            return list;
        }

        String xpath = res.getXPath();
        ConfigAdd configAdd = ConfigChangeFactory.createConfigAdd(_ctx, xpath);
        list.add(configAdd);

        return list;
    }
View Full Code Here

                                            throws AdminEventListenerException {
        _logger.log(Level.FINE,"sgmt.reconfig_handlecreatereceived");
        try{            
            ConfigContext configContext = event.getConfigContext();
            Config config = ServerBeansFactory.getConfigBean(configContext);
            ConfigAdd configAdd = null;
            ConfigChange configChange = null;
            ArrayList<ConfigChange> configChangeList = event.getConfigChangeList();
            ManagementRule rule = null;
            String xpath = null;
            String pXPath = null;
View Full Code Here

            ConfigContext configContext = event.getConfigContext();
            Config config = ServerBeansFactory.getConfigBean(configContext);
           
            if ( config == null) return;
           
            ConfigAdd configAdd = null;
            ArrayList configChangeList = event.getConfigChangeList();
            HttpListener httpBean = null;
            String xpath = null;
            Object object;
            Object configObject;
           
            for (int i=0; i < configChangeList.size(); i++){
                configObject = configChangeList.get(i);

                if ( configObject instanceof ConfigAdd) {
                    configAdd = (ConfigAdd)configObject;
                    xpath = configAdd.getXPath();
                    if( xpath != null){
                        object = configContext.exactLookup(xpath);
                        if ( object instanceof HttpListener){
                            httpBean = (HttpListener)object;
                            webContainer.createConnector(httpBean,
View Full Code Here

            ConfigContext configContext = event.getConfigContext();
            Config config = ServerBeansFactory.getConfigBean(configContext);
                                   
            if ( config == null) return;
           
            ConfigAdd configAdd = null;
            ArrayList configChangeList = event.getConfigChangeList();
            VirtualServer vsBean = null;
            String xpath = null;
            Server serverBean = ServerBeansFactory.getServerBean(configContext);
            ElementProperty elementProperty = null;
            Object object;
            Object configObject;
           
            for (int i=0; i < configChangeList.size(); i++){
                configObject = configChangeList.get(i);

                if ( configObject instanceof ConfigAdd) {
                    configAdd = (ConfigAdd)configObject;
                    xpath = configAdd.getXPath();
                    if( xpath != null){
                        object = configContext.exactLookup(xpath);

                        if ( object instanceof VirtualServer){
                            vsBean = (VirtualServer)object;
View Full Code Here

                               int endIndex = clusterXPath.indexOf("']");
                               String  clusterName = clusterXPath.substring(beginIndex, endIndex);
                               cfgList = new ArrayList<ConfigChange>();
                              
                               if (ev.getChoice().equals("ADD")) {
                                   ConfigAdd cfgAdd = ConfigChangeFactory.createConfigAdd(ctx, xpath);
                                   cfgList.add(cfgAdd);
                               } else if (ev.getChoice().equals("DELETE")) {
                                   ConfigDelete cfgDelete = ConfigChangeFactory.createConfigDelete(xpath);
                                   cfgList.add(cfgDelete);
                               }
View Full Code Here

TOP

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

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.