/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); stopAllGrids(); }
/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); super.beforeTest(); }
@Override public boolean apply() { return dummyFailureHandler(igniteFail).failure(); } }, 5000L));
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); cfg.setCacheConfiguration(new CacheConfiguration() .setName(DEFAULT_CACHE_NAME) .setCacheMode(CacheMode.PARTITIONED) .setBackups(0) ); return cfg; }
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); DataStorageConfiguration dsCfg = new DataStorageConfiguration(); DataRegionConfiguration dfltPlcCfg = new DataRegionConfiguration(); dfltPlcCfg.setName("dfltPlc"); dfltPlcCfg.setInitialSize(SIZE); dfltPlcCfg.setMaxSize(SIZE); if (pds) dfltPlcCfg.setPersistenceEnabled(true); dsCfg.setDefaultDataRegionConfiguration(dfltPlcCfg); dsCfg.setPageSize(PAGE_SIZE); cfg.setDataStorageConfiguration(dsCfg); CacheConfiguration<?, ?> ccfg = new CacheConfiguration<>() .setName(DEFAULT_CACHE_NAME) .setCacheMode(CacheMode.PARTITIONED) .setBackups(0) .setAtomicityMode(mvcc ? CacheAtomicityMode.TRANSACTIONAL_SNAPSHOT : CacheAtomicityMode.TRANSACTIONAL); cfg.setCacheConfiguration(ccfg); return cfg; }
/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); cleanPersistenceDir(); }