Examples of ConfigImpl


Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

   
    /**
     * Default constructor, that creates a new instance of ConfigImpl and wraps it.
     */
    public ConfigModel() {
        this(new ConfigImpl());
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        this.config = config;
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

    @SuppressWarnings("unchecked")
    public void setConfig(IConfig config) {
        if (config == null) {
            view.enableListener(false);
            config = new ConfigImpl();
            // return;
        }

        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ConfigImpl

        for (Configuration c : configs) {
            String type = c.getType();
            IConfig scan = null;
            if (type.equals("Config1DImpl") || type.equals("Config1D")) {
                scan = new ConfigImpl(); // new Config1D();
                scan.setType(IConfig.ScanType.SCAN_1D);
            } else if(type.equals("Config2DImpl") || type.equals("Config2D")) {
                scan = new ConfigImpl(); // new Config1D();
                scan.setType(IConfig.ScanType.SCAN_2D);
            } else if(type.equals("ConfigHCSImpl") || type.equals("ConfigHCS")) {
                scan = new ConfigImpl();
                scan.setType(IConfig.ScanType.SCAN_HCS);
            } else if(type.equals("ConfigKImpl") || type.equals("ConfigK")) {
                scan = new ConfigImpl();
                scan.setType(IConfig.ScanType.SCAN_K);
            } else if(type.equals("ConfigEnergyImpl") || type.equals("ConfigEnergy")) {
                scan = new ConfigImpl();
                scan.setType(IConfig.ScanType.SCAN_ENERGY);
            }
            else if(type.equals("ConfigEnergy")) {
                scan = new ConfigEnergyImpl();
                scan.setType(IConfig.ScanType.SCAN_ENERGY);
View Full Code Here

Examples of org.apache.ambari.server.state.ConfigImpl

              configProperties.put(PropertyHelper.getPropertyName(entry.getKey()),
                entry.getValue().toString());
            }
          }

          Config config = new ConfigImpl(type);
          config.setVersionTag(tag);
          config.setProperties(configProperties);

          configurations.put(config.getType(), config);
        }
      } catch (Exception e) {
        LOG.warn("Config json in unparseable format. " + configObj, e);
      }
    }
View Full Code Here

Examples of org.apache.ambari.server.state.ConfigImpl

    Map<String, Config> configs = new HashMap<String, Config>();
    Map<String, String> properties = new HashMap<String, String>();
    properties.put("a", "a1");
    properties.put("b", "b1");

    Config c1 = new ConfigImpl(cluster, "hdfs-site", properties, injector);
    properties.put("c", "c1");
    properties.put("d", "d1");
    Config c2 = new ConfigImpl(cluster, "core-site", properties, injector);
    Config c3 = new ConfigImpl(cluster, "foo-site", properties, injector);

    Map<String, String> mapRequestProps = new HashMap<String, String>();
    mapRequestProps.put("context", "Called from a test");

    c1.setVersionTag("v1");
    c2.setVersionTag("v1");
    c3.setVersionTag("v1");

    cluster.addConfig(c1);
    cluster.addConfig(c2);
    cluster.addConfig(c3);
    c1.persist();
    c2.persist();
    c3.persist();

    configs.put(c1.getType(), c1);
    configs.put(c2.getType(), c2);

    ServiceRequest r = new ServiceRequest(clusterName, serviceName, State.INSTALLED.toString());
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.