Examples of SystemProperty


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

            throw new MBeanException(e);
        }
    }

    private void addSystemProperty(Config config) throws ConfigException {
        SystemProperty sp = new SystemProperty();
        if (config.getSystemPropertyByName("DIAMETER_TCP_ADDRESS") == null) {
            sp.setName("DIAMETER_TCP_ADDRESS");
            sp.setValue("localhost");
            config.addSystemProperty(sp);
        }
        sp = new SystemProperty();
        if (config.getSystemPropertyByName("DIAMETER_SSL_ADDRESS") == null) {
            sp.setName("DIAMETER_SSL_ADDRESS");
            sp.setValue("localhost");
            config.addSystemProperty(sp);
        }
        sp = new SystemProperty();
        if (config.getSystemPropertyByName("DIAMETER_TCP_PORT") == null) {
            sp.setName("DIAMETER_TCP_PORT");
            sp.setValue("3777");
            config.addSystemProperty(sp);
        }
        sp = new SystemProperty();
        if (config.getSystemPropertyByName("DIAMETER_SSL_PORT") == null) {
            sp.setName("DIAMETER_SSL_PORT");
            sp.setValue("3778");
            config.addSystemProperty(sp);
        }
    }
View Full Code Here

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

            setSystemProperty(DEBUG, getDebugPort());
        }
    }

    private void setSystemProperty(String name, String value) throws TransactionFailure, PropertyVetoException {
        SystemProperty sp = _server.getSystemProperty(name);
        if (sp == null) {
            SystemProperty newSP = _server.createChild(SystemProperty.class);
            newSP.setName(name);
            newSP.setValue(value);
            _server.getSystemProperty().add(newSP);
        } else {
            //Don't change the system property if it already exists - leave the original port assignment
            //sp.setName(name);
            //sp.setValue(value);
View Full Code Here

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

                sp.setValue(port);
                return;
            }
        }
        // does not exist -- let's add one!
        SystemProperty sp = newServer.createChild(SystemProperty.class);
        sp.setName(name);
        sp.setValue(port);
        sps.add(sp);
    }
View Full Code Here

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

    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getName())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getName());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
View Full Code Here

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

        // isToken returned true so we are NOT assuming anything below!
        String key = portString.substring(2, portString.length() - 1);

        // check cluster and the cluster's config if applicable
        // bnevins Jul 18, 2010 -- don't botehr this should never be called anymore
        SystemProperty prop = server.getSystemProperty(key);

        if (prop != null) {
            return prop.getValue();
        }

        prop = config.getSystemProperty(key);

        if (prop != null) {
            return prop.getValue();
        }

        return null;
    }
View Full Code Here

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

    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getName())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getName());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
View Full Code Here

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

                        if (systemProperties != null) {
                            for (final Map.Entry<Object, Object> entry : systemProperties.entrySet()) {
                                final String propName = (String) entry.getKey();
                                final String propValue = (String) entry.getValue();
                                SystemProperty newSP = newServer.createChild(SystemProperty.class);
                                //newSP.setDescription(sp.getDescription());
                                newSP.setName(propName);
                                newSP.setValue(propValue);
                                newServer.getSystemProperty().add(newSP);
                            }
                        }

                        param.getServer().add(newServer);
View Full Code Here

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

    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getKey())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getKey());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getDefaultValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
View Full Code Here

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

    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getName())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getName());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
View Full Code Here

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

    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getName())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getName());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
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.