Package eu.mosaic_cloud.platform.core.configuration

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


     
    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;
    scenario.registerDriverRole(DFSSession.DRIVER);
View Full Code Here


    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;
    scenario.registerDriverRole(DFSSession.DRIVER);
   
View Full Code Here

    this.threadingContext = BasicThreadingContext.create (this, exceptions, exceptions.catcher);
    this.threadingContext.initialize ();
    final String host = System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_HOST, MemcachedDriverTest.MOSAIC_MEMCACHED_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_PORT, MemcachedDriverTest.MOSAIC_MEMCACHED_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
View Full Code Here

    this.threadingContext.initialize ();
    final String host = System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_HOST, MemcachedDriverTest.MOSAIC_MEMCACHED_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_PORT, MemcachedDriverTest.MOSAIC_MEMCACHED_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
View Full Code Here

    final String host = System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_HOST, MemcachedDriverTest.MOSAIC_MEMCACHED_HOST_DEFAULT);
    final Integer port = Integer.valueOf (System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_PORT, MemcachedDriverTest.MOSAIC_MEMCACHED_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
    this.wrapper = MemcachedDriver.create (configuration, this.threadingContext);
View Full Code Here

    final Integer port = Integer.valueOf (System.getProperty (MemcachedDriverTest.MOSAIC_MEMCACHED_PORT, MemcachedDriverTest.MOSAIC_MEMCACHED_PORT_DEFAULT));
    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
    this.wrapper = MemcachedDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (MemcachedDriverTest.keyPrefix, "test");
View Full Code Here

    final IConfiguration configuration = PropertyTypeConfiguration.create ();
    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
    this.wrapper = MemcachedDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (MemcachedDriverTest.keyPrefix, "test");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
View Full Code Here

    configuration.addParameter ("memcached.host_1", host);
    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
    this.wrapper = MemcachedDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (MemcachedDriverTest.keyPrefix, "test");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
  }
View Full Code Here

    configuration.addParameter ("memcached.port_1", port);
    configuration.addParameter ("kvstore.driver_name", "MEMCACHED");
    configuration.addParameter ("kvstore.driver_threads", 1);
    configuration.addParameter ("kvstore.bucket", "test");
    configuration.addParameter ("kvstore.user", "test");
    configuration.addParameter ("kvstore.passwd", "test");
    this.wrapper = MemcachedDriver.create (configuration, this.threadingContext);
    this.wrapper.registerClient (MemcachedDriverTest.keyPrefix, "test");
    this.encoder = PlainTextDataEncoder.DEFAULT_INSTANCE;
  }
 
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.