Examples of addConfiguration()


Examples of backtype.storm.topology.SpoutDeclarer.addConfiguration()

        TopologyBuilder builder = new TopologyBuilder();
        SpoutDeclarer declarer = builder.setSpout(coordinator, new TransactionalSpoutCoordinator(_spout));
        for(Map conf: _spoutConfs) {
            declarer.addConfigurations(conf);
        }
        declarer.addConfiguration(Config.TOPOLOGY_TRANSACTIONAL_ID, _id);

        BoltDeclarer emitterDeclarer =
                builder.setBolt(_spoutId,
                        new CoordinatedBolt(new TransactionalSpoutBatchExecutor(_spout),
                                             null,
View Full Code Here

Examples of com.intellij.execution.RunManager.addConfiguration()

    final DartCommandLineRunConfiguration runConfiguration = (DartCommandLineRunConfiguration)settings.getConfiguration();
    runConfiguration.getRunnerParameters().setFilePath(mainDartFile.getPath());
    runConfiguration.getRunnerParameters().setWorkingDirectory(mainDartFile.getParent().getPath());
    settings.setName(runConfiguration.suggestedName());

    runManager.addConfiguration(settings, false);
    runManager.setSelectedConfiguration(settings);
  }
}
View Full Code Here

Examples of com.intellij.execution.RunManagerEx.addConfiguration()

        // check whether a configuration already exists for the given method
        if (runConfigurationSetting == null) {
            DBProgramRunConfigurationFactory configurationFactory = configurationType.getConfigurationFactory();
            DBProgramRunConfiguration runConfiguration = configurationFactory.createConfiguration(method);
            runConfigurationSetting = runManager.createConfiguration(runConfiguration, configurationFactory);
            runManager.addConfiguration(runConfigurationSetting, false);
            runManager.setTemporaryConfiguration(runConfigurationSetting);

        }

        runManager.setSelectedConfiguration(runConfigurationSetting);
View Full Code Here

Examples of com.netflix.config.ConcurrentCompositeConfiguration.addConfiguration()

        ConcurrentMapConfiguration subConfig = new ConcurrentMapConfiguration();
        subConfig.setProperty("com.netflix.config.samples.SampleApp.SampleBean.name", "A Coffee Bean from Cuba");
        myConfiguration.setProperty("com.netflix.config.samples.sampleapp.prop1", "value1");

        myConfiguration.addConfiguration(subConfig);
        System.out.println("Started SampleApplication. Launch JConsole to inspect and update properties.");
        System.out.println("To see how callback work, update property com.netflix.config.samples.SampleApp.SampleBean.sensitiveBeanData from BaseConfigBean in JConsole");
       
        SampleBean sampleBean = new SampleBean();
        // this should show the bean taking properties from two different sources
View Full Code Here

Examples of com.pholser.junit.quickcheck.internal.ParameterContext.addConfiguration()

        context.addQuantifier(quantifier);
        context.addConstraint(constraint);
        if (explicitGenerators.value() != null)
            context.addGenerators(explicitGenerators);
        for (Map.Entry<Class<? extends Annotation>, Annotation> each : configurations().entrySet())
            context.addConfiguration(each.getKey(), each.getValue());

        theoryParameters = generator.generate(context);
    }

    protected Iterable<Generator<?>> generatorSource() {
View Full Code Here

Examples of com.volantis.osgi.cm.factory.FactoryAssociation.addConfiguration()

            // Get the factory association.
            FactoryAssociation association = getFactoryAssociation(factoryPid);

            // Add a configuration object to the factory association.
            association.addConfiguration(configuration);
        }

        // Store the configuration away, making sure that it does not clash
        // with another configuration.
        if (pid2Configuration.containsKey(pid)) {
View Full Code Here

Examples of com.volantis.osgi.cm.service.ServiceAssociation.addConfiguration()

            // Get the factory association.
            FactoryAssociation association = getFactoryAssociation(factoryPid);

            // Add a configuration object to the factory association.
            association.addConfiguration(configuration);
        }

        // Store the configuration away, making sure that it does not clash
        // with another configuration.
        if (pid2Configuration.containsKey(pid)) {
View Full Code Here

Examples of flex2.tools.oem.Configuration.addConfiguration()

                BufferedWriter bw = new BufferedWriter(new FileWriter(tmpFile));
                bw.write(config);
                bw.close();
               
                Configuration conf = job.app.getDefaultConfiguration();
                conf.addConfiguration(tmpFile);
                job.app.setConfiguration(conf);
              }
             
              File outFile = new File(outPath);
              File outDir = new File(outFile.getParent());
View Full Code Here

Examples of io.fabric8.api.ProfileBuilder.addConfiguration()

                    config.put(key, defaultValue);
                }
            }
        }
       
        builder.addConfiguration(pidName, config);
        Profile profile = builder.getProfile();
        return create ? profileService.createProfile(profile) : profileService.updateProfile(profile);
    }

    static public String generatePassword(int len) {
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.model.config.Module.addConfiguration()

    // Update task-key on the task itself
    userTask.setFormKey(type.getName());
   
    // Create a form-config for the task
    Module shareModule = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
    Configuration configuration = shareModule.addConfiguration(AlfrescoConversionConstants.EVALUATOR_TASK_TYPE
        , type.getName());
    Form formConfig = configuration.createForm();
   
    // Populate model and form based on FormDefinition
    formCreator.createForm(type, formConfig, humanStep.getForm(), conversion);
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.