Package eu.mosaic_cloud.platform.core.configuration

Examples of eu.mosaic_cloud.platform.core.configuration.IConfiguration.addParameter()


  {
    final String host = System.getProperty (AmqpQueueRawConnectorTest.MOSAIC_AMQP_HOST, AmqpQueueRawConnectorTest.MOSAIC_AMQP_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (AmqpQueueRawConnectorTest.MOSAIC_AMQP_PORT, AmqpQueueRawConnectorTest.MOSAIC_AMQP_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("interop.driver.endpoint", "inproc://f4c74dc5-b548-4ec4-a6a6-ef97c79bf55d");
    configuration.addParameter ("interop.driver.identity", "f4c74dc5-b548-4ec4-a6a6-ef97c79bf55d");
    configuration.addParameter ("amqp.host", host);
    configuration.addParameter ("amqp.port", port);
    configuration.addParameter ("amqp.driver_threads", 1);
    configuration.addParameter ("consumer.amqp.queue", "tests.queue");
    configuration.addParameter ("consumer.amqp.consumer_id", "tests.consumer");
View Full Code Here


    final String host = System.getProperty (AmqpQueueRawConnectorTest.MOSAIC_AMQP_HOST, AmqpQueueRawConnectorTest.MOSAIC_AMQP_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (AmqpQueueRawConnectorTest.MOSAIC_AMQP_PORT, AmqpQueueRawConnectorTest.MOSAIC_AMQP_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("interop.driver.endpoint", "inproc://f4c74dc5-b548-4ec4-a6a6-ef97c79bf55d");
    configuration.addParameter ("interop.driver.identity", "f4c74dc5-b548-4ec4-a6a6-ef97c79bf55d");
    configuration.addParameter ("amqp.host", host);
    configuration.addParameter ("amqp.port", port);
    configuration.addParameter ("amqp.driver_threads", 1);
    configuration.addParameter ("consumer.amqp.queue", "tests.queue");
    configuration.addParameter ("consumer.amqp.consumer_id", "tests.consumer");
    configuration.addParameter ("consumer.amqp.auto_ack", true);
View Full Code Here

    this.threadingContext = BasicThreadingContext.create (this, exceptions, exceptions.catcher);
    this.threadingContext.initialize ();
    final String host = System.getProperty (RedisDriverTest.MOSAIC_REDIS_HOST, RedisDriverTest.MOSAIC_REDIS_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (RedisDriverTest.MOSAIC_REDIS_PORT, RedisDriverTest.MOSAIC_REDIS_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("kvstore.host", host);
    configuration.addParameter ("kvstore.port", port);
    configuration.addParameter ("kvstore.driver_name", "REDIS");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "999");
    this.wrapper = RedisDriver.create (configuration, this.threadingContext);
View Full Code Here

    this.threadingContext.initialize ();
    final String host = System.getProperty (RedisDriverTest.MOSAIC_REDIS_HOST, RedisDriverTest.MOSAIC_REDIS_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (RedisDriverTest.MOSAIC_REDIS_PORT, RedisDriverTest.MOSAIC_REDIS_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("kvstore.host", host);
    configuration.addParameter ("kvstore.port", port);
    configuration.addParameter ("kvstore.driver_name", "REDIS");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "999");
    this.wrapper = RedisDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (RedisDriverTest.keyPrefix, "1");
View Full Code Here

    final String host = System.getProperty (RedisDriverTest.MOSAIC_REDIS_HOST, RedisDriverTest.MOSAIC_REDIS_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (RedisDriverTest.MOSAIC_REDIS_PORT, RedisDriverTest.MOSAIC_REDIS_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("kvstore.host", host);
    configuration.addParameter ("kvstore.port", port);
    configuration.addParameter ("kvstore.driver_name", "REDIS");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "999");
    this.wrapper = RedisDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (RedisDriverTest.keyPrefix, "1");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
View Full Code Here

    final Integer port = Integer.valueOf (System.getProperty (RedisDriverTest.MOSAIC_REDIS_PORT, RedisDriverTest.MOSAIC_REDIS_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("kvstore.host", host);
    configuration.addParameter ("kvstore.port", port);
    configuration.addParameter ("kvstore.driver_name", "REDIS");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "999");
    this.wrapper = RedisDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (RedisDriverTest.keyPrefix, "1");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
  }
View Full Code Here

    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("kvstore.host", host);
    configuration.addParameter ("kvstore.port", port);
    configuration.addParameter ("kvstore.driver_name", "REDIS");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "999");
    this.wrapper = RedisDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (RedisDriverTest.keyPrefix, "1");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
  }
 
View Full Code Here

  public static void setUpBeforeClass() throws Exception {
//    String host = "localhost";
//    Integer port = 9000;
     
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("interop.driver.endpoint", "inproc://fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("interop.driver.identity", "fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("dfs.port", 9000);
    configuration.addParameter ("dfs.host", "localhost");
    configuration.addParameter ("dfs.driver", "eu.mosaic_cloud.drivers.filesystem.hdfs.HDFSDriver");
   
View Full Code Here

//    String host = "localhost";
//    Integer port = 9000;
     
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("interop.driver.endpoint", "inproc://fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("interop.driver.identity", "fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("dfs.port", 9000);
    configuration.addParameter ("dfs.host", "localhost");
    configuration.addParameter ("dfs.driver", "eu.mosaic_cloud.drivers.filesystem.hdfs.HDFSDriver");
   
    Scenario scenario = new Scenario (HdfsTest.class, configuration);
View Full Code Here

//    Integer port = 9000;
     
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("interop.driver.endpoint", "inproc://fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("interop.driver.identity", "fb012d6b-c238-4b31-b889-4121a318b2cb");
    configuration.addParameter ("dfs.port", 9000);
    configuration.addParameter ("dfs.host", "localhost");
    configuration.addParameter ("dfs.driver", "eu.mosaic_cloud.drivers.filesystem.hdfs.HDFSDriver");
   
    Scenario scenario = new Scenario (HdfsTest.class, configuration);
    HdfsTest.scenario = scenario;
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.