Examples of Config


Examples of org.apache.http.benchmark.Config

    private static final int PORT = 8989;
   
    public static void main(String[] args) throws Exception {
       
        Config config = new Config();
        if (args.length > 0) {
            Options options = CommandLineUtils.getOptions();
            CommandLineParser parser = new PosixParser();
            CommandLine cmd = parser.parse(options, args);
            if (cmd.hasOption('h')) {
                HelpFormatter formatter = new HelpFormatter();
                formatter.printHelp("Benchmark [options]", options);
                System.exit(1);
            }
            CommandLineUtils.parseCommandLine(cmd, config);
        } else {
            config.setKeepAlive(true);
            config.setRequests(20000);
            config.setThreads(25);
        }
       
        URL target = new URL("http", "localhost", PORT, "/rnd?c=2048");
        config.setUrl(target);
       
        Benchmark benchmark = new Benchmark();
        benchmark.run(new JettyServer(PORT), config);
        benchmark.run(new HttpCoreServer(PORT), config);
        benchmark.run(new JettyNIOServer(PORT), config);
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.perf.Config

    InputStream is = MultipleNodesTestBase.class
        .getResourceAsStream("/config.cfg");
    Properties properties = new Properties();
    properties.load(is);
    is.close();
    config = new Config(properties);
  }
View Full Code Here

Examples of org.apache.karaf.jaas.config.impl.Config

    public void testSelectByIndex() throws Exception {
        ManageRealmCommand cmd = new ManageRealmCommand();

        // set up two realms, each containing 1 module

        Config realm1 = newConfigNamed("realm1");
        realm1.setModules(new Module[] { newModuleNamed("module1") });

        Config realm2 = newConfigNamed("realm2");
        realm2.setModules(new Module[] { newModuleNamed("module2") });

        Config[] realms = { realm1, realm2 };

        doVerifyIndex(cmd, 1, realms);
        doVerifyIndex(cmd, 2, realms);
View Full Code Here

Examples of org.apache.lucene.benchmark.byTask.utils.Config

  }
 
  @Override
  public int doLogic() throws IOException {
    PerfRunData runData = getRunData();
    Config config = runData.getConfig();
   
    IndexWriter writer = new IndexWriter(runData.getDirectory(),
                                         runData.getAnalyzer(),
                                         true,
                                         getIndexDeletionPolicy(config),
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.config.Config

    }

    private synchronized void configure() {
        try {
            LOG.log(Level.INFO, "Configuring DaemonLauncher. . .");
            config = new Config();
            config.loadConfigFile(propertiesFile);
            rs = new RemoteSpecs();
            for (File sitesFile : sitesFiles) {
                LOG
                        .log(Level.INFO, "Loading SiteInfo file '" + sitesFile
View Full Code Here

Examples of org.apache.qpid.disttest.controller.config.Config

        {
            List<ResultsForAllTests> results = new ArrayList<ResultsForAllTests>();

            for (String testConfigFile : testConfigFiles)
            {
                final Config testConfig = buildTestConfigFrom(testConfigFile);
                controller.setConfig(testConfig);

                controller.awaitClientRegistrations();

                LOGGER.info("Running test : " + testConfigFile);
View Full Code Here

Examples of org.apache.qpid.testutil.Config

        if (argv.length >= 2)
        {
            int msgCount = Integer.parseInt(argv[argv.length - 2]);
            int consumerCount = Integer.parseInt(argv[argv.length - 1]);

            Config config = new Config();
            config.setType(Config.HEADERS);
            config.setName("test_headers_exchange");
            String[] options = new String[argv.length - 2];
            System.arraycopy(argv, 0, options, 0, options.length);
            config.setOptions(options);

            new Publisher(config).test(msgCount, consumerCount);
        }

    }
View Full Code Here

Examples of org.apache.qpid.topic.Config

            //usage();
            //System.exit(0);
        }

        // Extract all command line parameters.
        Config config = new Config();
        config.setOptions(args);
        String brokerDetails = config.getHost() + ":" + config.getPort();
        String virtualpath = "test";
        String destinationName = config.getDestination();
        if (destinationName == null)
        {
            destinationName = DEFAULT_DESTINATION_NAME;
        }

        String selector = config.getSelector();
        boolean transacted = config.isTransacted();
        boolean persistent = config.usePersistentMessages();
        boolean pubsub = config.isPubSub();
        boolean verbose = true;

        //String selector = null;

        // Instantiate the ping pong client with the command line options and start it running.
View Full Code Here

Examples of org.apache.s4.comm.util.ConfigParser.Config

        System.exit(1);
    }

    private static void doMain(String zkAddress, boolean clean, boolean setup, String setupXml) {
        ConfigParser parser = new ConfigParser();
        Config config = parser.parse(setupXml);
        for (Cluster cluster : config.getClusters()) {
            processCluster(clean, zkAddress, cluster, config.getVersion());
        }
    }
View Full Code Here

Examples of org.apache.samza.config.Config

  @Test
  public void testJsonTaskModel() throws Exception {
    ObjectMapper mapper = SamzaObjectMapper.getObjectMapper();
    Map<String, String> configMap = new HashMap<String, String>();
    configMap.put("a", "b");
    Config config = new MapConfig(configMap);
    Set<SystemStreamPartition> inputSystemStreamPartitions = new HashSet<SystemStreamPartition>();
    inputSystemStreamPartitions.add(new SystemStreamPartition("foo", "bar", new Partition(1)));
    TaskName taskName = new TaskName("test");
    TaskModel taskModel = new TaskModel(taskName, inputSystemStreamPartitions, new Partition(2));
    Map<TaskName, TaskModel> tasks = new HashMap<TaskName, TaskModel>();
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.