/** {@inheritDoc} */ @Override protected Void run(VisorChangeGridActiveStateTaskArg arg) { ignite.active(arg.isActive()); return null; }
/** * @param cnt Count. * @throws Exception If failed. */ void startPrimaryNodes(int cnt) throws Exception { for (int i = 0; i < cnt; i++) startPrimary(i); if (cnt > 0) grid("node0" + primarySuffix).active(true); }
/** * @throws Exception if failed. */ private void checkManyPartitions() throws Exception { try { startGrids(4); grid(0).active(true); } finally { stopAllGrids(); } }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); grid(0).active(true); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); cleanPersistenceDir(); ignite = (IgniteEx)startGrid(); if (persist()) ignite.active(true); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); grid(0).active(true); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); grid(0).active(true); awaitPartitionMapExchange(); }
/** * @throws Exception On error. */ @Test public void testEvictPagesWithDiskStorageSingleCacheInGroup() throws Exception { persistenceEnabled = true; startGrid(); grid().active(true); checkRowCacheOnPageEviction(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); grid(0).active(true); startGrid(OUT_OF_BASELINE_GRID_ID); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); startGrids(GRID_CNT + 1); grid(0).active(true); stopGrid(GRID_CNT); startGrid(GRID_CNT + 1); }
/** * @throws Exception If fail. */ @Test public void testPageReplacement() throws Exception { final IgniteEx ig = startGrid(0); ig.active(true); final PageMemory memory = getMemory(ig); writeData(ig, memory, CU.cacheId(cacheName)); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); startGrid(GRIDS_COUNT); grid(0).active(true); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { cleanPersistenceDir(); startGrids(GRIDS_COUNT); grid(0).active(true); startGrid(OUT_OF_BASELINE_GRID_ID); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { initStoreStrategy(); cleanPersistenceDir(); startGrids(gridCount()); grid(0).active(true); awaitPartitionMapExchange(); } }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { initStoreStrategy(); cleanPersistenceDir(); startGrids(gridCount()); grid(0).active(true); startGrid("onlineOutOfBaselineNode"); awaitPartitionMapExchange(); } }
/** * @throws Exception On error. */ @Test public void testEvictPagesWithDiskStorageWithOtherCacheInGroup() throws Exception { persistenceEnabled = true; startGrid(); grid().active(true); grid().getOrCreateCache(cacheConfiguration("cacheWithoutOnHeapCache", false)); checkRowCacheOnPageEviction(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { U.delete(U.resolveWorkDirectory(U.defaultWorkDirectory(), workSubdir(), true)); startGrid(getTestIgniteInstanceName()); grid().active(true); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { initStoreStrategy(); cleanPersistenceDir(); startGrids(gridCount()); startGrid("offlineBaselineNode"); grid(0).active(true); stopGrid("offlineBaselineNode"); awaitPartitionMapExchange(); } }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); int gridCnt = gridCount(); startGrids(gridCnt + 1); grid(0).active(true); stopGrid(gridCnt); startGrid(gridCnt + 1); fillCaches(); createCaches(); awaitPartitionMapExchange(); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); int gridCnt = gridCount(); startGrids(gridCnt + 1); grid(0).active(true); stopGrid(gridCnt); startGrid(gridCnt + 1); fillCaches(); createCaches(); awaitPartitionMapExchange(); }