Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.Configs


                    /*
                     * Now apply the required changes to the admin listener
                     * in the DAS configuration.
                     */
                    final Configs configs = domain_w.getConfigs();
                    final Config c = configs.getConfigByName(DAS_CONFIG_NAME);
                    final Config c_w = t.enroll(c);
                    ConfigLevelContext configLevelContext =
                            new ConfigLevelContext(topLevelContext, c_w);
                    for (Iterator<Work<ConfigLevelContext>> it = perConfigSteps(); it.hasNext();) {
                        final Work<ConfigLevelContext> step = it.next();
View Full Code Here


                     * though the non-DAS configs default to use SSL the user
                     * might have specified a different alias to use and that
                     * value must be set in the SSL element for the
                     * secure admin listener.
                     */
                    final Configs configs = domain_w.getConfigs();
                    for (Config c : configs.getConfig()) {
                        final Config c_w = t.enroll(c);
                        ConfigLevelContext configLevelContext =
                                new ConfigLevelContext(topLevelContext, c_w);
                        for (Iterator<Work<ConfigLevelContext>> it = perConfigSteps(); it.hasNext();) {
                            final Work<ConfigLevelContext> step = it.next();
View Full Code Here



            final Servers servers = server.getParent(Servers.class);
            final Domain domain = servers.getParent(Domain.class);
            final Configs configs = domain.getConfigs();

            if (servers.getServer(serverName) != null) { // validate for set, not _register-instance
                // cannot change config ref of a clustered instance
                Cluster cluster = domain.getClusterForInstance(serverName);
                if (cluster != null) { // cluster is not null during create-local-instance --cluster c1 i1
                    if (!cluster.getConfigRef().equals(configRef)) {
                        // During set when trying to change config-ref of a clustered instance,
                        // the value of desired config-ref will be different than the current config-ref.
                        // During _register-instance, (create-local-instance --cluster c1 i1)
                        // cluster.getConfigRef().equals(configRef) will be true and not come here.
                        logger.warning(localStrings.getLocalString("configref.clusteredinstance",
                                "Cannot change a config-ref when the instance is part of a cluster."));
                        return false;
                    }
                }
                // cannot use a non-existent config  (Only used by set.  _register-instance will fail earlier)
                if (configs == null || configs.getConfigByName(configRef) == null) {
                    logger.warning(localStrings.getLocalString("configref.nonexistent",
                            "A configuration that doesn't exist cannot be referenced by a server."));
                    return false;
                }
            }
View Full Code Here

                     * though the non-DAS configs default to use SSL the user
                     * might have specified a different alias to use and that
                     * value must be set in the SSL element for the
                     * secure admin listener.
                     */
                    final Configs configs = domain_w.getConfigs();
                    for (Config c : configs.getConfig()) {
                        final Config c_w = t.enroll(c);
                        ConfigLevelContext configLevelContext =
                                new ConfigLevelContext(topLevelContext, c_w);
                        for (Iterator<Work<ConfigLevelContext>> it = perConfigSteps(); it.hasNext();) {
                            final Work<ConfigLevelContext> step = it.next();
View Full Code Here

                     * though the non-DAS configs default to use SSL the user
                     * might have specified a different alias to use and that
                     * value must be set in the SSL element for the
                     * secure admin listener.
                     */
                    final Configs configs = domain_w.getConfigs();
                    for (Config c : configs.getConfig()) {
                        final Config c_w = t.enroll(c);
                        ConfigLevelContext configLevelContext =
                                new ConfigLevelContext(topLevelContext, c_w);
                        for (Iterator<Work<ConfigLevelContext>> it = perConfigSteps(); it.hasNext();) {
                            final Work<ConfigLevelContext> step = it.next();
View Full Code Here

           return false;
        }

        final Servers servers = server.getParent(Servers.class);
        final Domain domain = servers.getParent(Domain.class);
        final Configs configs = domain.getConfigs();

        if (servers.getServer(serverName) != null) { // validate for set, not _register-instance
            // cannot change config ref of a clustered instance
            Cluster cluster = domain.getClusterForInstance(serverName);
            if (cluster != null) { // cluster is not null during create-local-instance --cluster c1 i1
                if (!cluster.getConfigRef().equals(configRef)) {
                    // During set when trying to change config-ref of a clustered instance,
                    // the value of desired config-ref will be different than the current config-ref.
                    // During _register-instance, (create-local-instance --cluster c1 i1)
                    // cluster.getConfigRef().equals(configRef) will be true and not come here.
                    logger.warning(localStrings.getLocalString("configref.clusteredinstance",
                            "Cannot change a config-ref when the instance is part of a cluster."));
                    return false;
                }
            }
            // cannot use a non-existent config  (Only used by set.  _register-instance will fail earlier)
            if (configs == null || configs.getConfigByName(configRef) == null) {
                logger.warning(localStrings.getLocalString("configref.nonexistent",
                        "A configuration that doesn't exist cannot be referenced by a server."));
                return false;
            }
        }
View Full Code Here

        fineLog( "getConfigForServer: server {0}", server ) ;

        String configRef = server.getConfigRef() ;
        fineLog( "getConfigForServer: configRef {0}", configRef ) ;

        Configs configs = services.getService( Configs.class ) ;
        fineLog( "getConfigForServer: configs {0}", configs ) ;

        Config config = configs.getConfigByName(configRef) ;
        fineLog( "getConfigForServer: config {0}", config ) ;

        return config ;
    }
View Full Code Here

        fineLog( "getConfigForServer: server {0}", server ) ;

        String configRef = server.getConfigRef() ;
        fineLog( "getConfigForServer: configRef {0}", configRef ) ;

        Configs configs = services.getService( Configs.class ) ;
        fineLog( "getConfigForServer: configs {0}", configs ) ;

        Config config = configs.getConfigByName(configRef) ;
        fineLog( "getConfigForServer: config {0}", config ) ;

        return config ;
    }
View Full Code Here

    }

    private List<SystemProperty> getConfigSystemProperties() {
        try {
            String configName = server.getConfigRef();
            Configs configs = domain.getConfigs();
            List<Config> configsList = configs.getConfig();
            Config config = null;



            for (Config c : configsList) {
View Full Code Here

            List<Server> serversList = servers.getServer();
            checkDuplicate(serversList);
            */
           
            // Configs
            Configs configs = domain.getConfigs();
            if (configs != null) {
                List<Config> configList = configs.getConfig();
                checkDuplicate(configList);
                if (configList != null) {
                    // Children of each Config viz: HttpService, IiopService
                    for (Config cfg : configList) {
                        // config-->http-service
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.Configs

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.