/** * Initializes the factory with provided a configuration under {@code springCfgPath} that is used to start up * an underlying {@link Ignite} instance. * * @param springCfgPath A path to Ignite configuration. */ public IgniteRepositoryFactory(String springCfgPath) { this.ignite = Ignition.start(springCfgPath); }
/** * Initializes the factory with provided a configuration under {@code springCfgPath} that is used to start up * an underlying {@link Ignite} instance. * * @param springCfgPath A path to Ignite configuration. */ public IgniteRepositoryFactory(String springCfgPath) { this.ignite = Ignition.start(springCfgPath); }
/** * Initializes the factory with provided {@link IgniteConfiguration} that is used to start up an underlying * {@link Ignite} instance. * * @param cfg Ignite configuration. */ public IgniteRepositoryFactory(IgniteConfiguration cfg) { this.ignite = Ignition.start(cfg); }
/** * Start a node. * * @param cfg Configuration. * @return Ignite instance. */ private static Ignite ignitionStart(IgniteConfiguration cfg) { GridQueryProcessor.idxCls = BlockingIndexing.class; return Ignition.start(cfg); } }
@Override public Void call() throws Exception { Ignition.start(cfg); return null; } }, IgniteException.class, "SQL schema name derived from cache name is reserved (please set explicit SQL " +
@Override public Void call() throws Exception { Ignition.start(cfg); return null; } }, IgniteException.class, "SQL schema name is reserved (please choose another one) [cacheName=CACHE, " +
@Override public Void call() throws Exception { Ignition.start(cfg); return null; } }, IgniteException.class, "SQL schema name is reserved (please choose another one) [cacheName=CACHE, " +
@Override public Void call() throws Exception { Ignition.start(cfg); return null; } }, IgniteException.class, "SQL schema name is reserved (please choose another one) [cacheName=CACHE, " +
/** * Restore one of the failed nodes. */ public void restoreNode() { if (failedCfgs.isEmpty()) throw new IllegalStateException("Cannot restore nodes in healthy cluster"); NodeConfiguration nodeCfg = failedCfgs.get(rnd.nextInt(failedCfgs.size())); Ignite ignite = Ignition.start(getConfiguration(nodeCfg)); srvs.add(ignite); failedCfgs.remove(nodeCfg); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); for (IgniteConfiguration cfg : configurations()) Ignition.start(cfg); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); for (IgniteConfiguration cfg : configurations()) Ignition.start(cfg); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); for (IgniteConfiguration cfg : configurations()) Ignition.start(cfg); }
@Override public Object call() throws Exception { String cacheName = cacheName("Person"); Ignition.start(clientConfiguration(5).setCacheConfiguration(new CacheConfiguration(cacheName))); return null; } }, IgniteException.class, "Cache configuration mismatch (local cache was created via Ignite API, while " +
/** * Starts {@link Ignite} instance accorging to given arguments. * * @param args Arguments. * @throws Exception If failed. */ public static void main(String[] args) throws Exception { X.println(GridJavaProcess.PID_MSG_PREFIX + U.jvmPid()); X.println("Starting Ignite Node... Args=" + Arrays.toString(args)); IgniteConfiguration cfg = readCfgFromFileAndDeleteFile(args[0]); ignite = Ignition.start(cfg); }
@Override public Object call() throws Exception { final CacheConfiguration cfg = cacheConfig("InSensitiveCache", true, Integer.class, Integer.class) .setSqlSchema("InsensitiveCache"); final CacheConfiguration collisionCfg = cacheConfig("InsensitiveCache", true, Integer.class, Integer.class) .setSqlSchema("Insensitivecache"); IgniteConfiguration icfg = new IgniteConfiguration() .setLocalHost("127.0.0.1") .setCacheConfiguration(cfg, collisionCfg); Ignition.start(icfg); return null; } }, IgniteException.class, "Duplicate index name");
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { beforeHadoopCommandLineTest(); String cfgPath = "config/hadoop/default-config.xml"; IgniteBiTuple<IgniteConfiguration, GridSpringResourceContext> tup = IgnitionEx.loadConfiguration(cfgPath); IgniteConfiguration cfg = tup.get1(); cfg.setLocalHost("127.0.0.1"); // Avoid connecting to other nodes. igfs = (IgfsEx) Ignition.start(cfg).fileSystem(igfsName); }
@Override public Object call() throws Exception { final CacheConfiguration cfg = cacheConfig("cache1", true, Integer.class, Fact.class) .setSqlSchema("TEST_SCHEMA"); final CacheConfiguration collisionCfg = cacheConfig("cache2", true, Integer.class, Fact.class) .setSqlSchema("TEST_SCHEMA"); IgniteConfiguration icfg = new IgniteConfiguration() .setLocalHost("127.0.0.1") .setCacheConfiguration(cfg, collisionCfg); Ignition.start(icfg); return null; } }, IgniteException.class, "Failed to register query type");
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); for (IgniteConfiguration cfg : configurations()) Ignition.start(cfg); client().addCacheConfiguration(cacheConfiguration()); client().addCacheConfiguration(cacheConfiguration().setName(CACHE_NAME + "_async") .setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_ASYNC)); client().addCacheConfiguration(cacheConfiguration().setName(CACHE_NAME_BACKUPS).setBackups(DFLT_BACKUPS)); }