public virtual void StartGrids() { TestUtils.KillProcesses(); IgniteConfigurationEx cfg = new IgniteConfigurationEx(); cfg.JvmClasspath = TestUtils.CreateTestClasspath(); cfg.JvmOptions = TestUtils.TestJavaOptions(); cfg.SpringConfigUrl = "config\\native-client-test-cache-affinity.xml"; for (int i = 0; i < 3; i++) { cfg.GridName = "grid-" + i; Ignition.Start(cfg); } }
public virtual void BeforeTests() { //TestUtils.JVM_DEBUG = true; TestUtils.KillProcesses(); TestUtils.JvmDebug = true; IgniteConfigurationEx cfg = new IgniteConfigurationEx { GridName = IgniteName, JvmClasspath = TestUtils.CreateTestClasspath(), JvmOptions = TestUtils.TestJavaOptions(), SpringConfigUrl = @"config\cache\store\cache-store-session.xml" }; Ignition.Start(cfg); }
/// <summary> /// Create configuration. /// </summary> /// <param name="name">Grid name.</param> /// <param name="springCfg">Spring configuration.</param> /// <returns>Configuration.</returns> private static IgniteConfigurationEx CreateConfiguration(string name, string springCfg) { IgniteConfigurationEx cfg = new IgniteConfigurationEx(); PortableConfiguration portCfg = new PortableConfiguration(); ICollection<PortableTypeConfiguration> portTypeCfgs = new List<PortableTypeConfiguration>(); portTypeCfgs.Add(new PortableTypeConfiguration(typeof(DynamicTestKey))); portTypeCfgs.Add(new PortableTypeConfiguration(typeof(DynamicTestValue))); portCfg.TypeConfigurations = portTypeCfgs; cfg.GridName = name; cfg.PortableConfiguration = portCfg; cfg.JvmClasspath = TestUtils.CreateTestClasspath(); cfg.JvmOptions = TestUtils.TestJavaOptions(); cfg.SpringConfigUrl = springCfg; return cfg; }