/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { final IgniteConfiguration cfg = super.getConfiguration(gridName); if (configuredConsistentId != null) cfg.setConsistentId(configuredConsistentId); final DataStorageConfiguration dsCfg = new DataStorageConfiguration(); if (placeStorageInTemp) { final File tempDir = new File(System.getProperty("java.io.tmpdir")); pstStoreCustomPath = new File(tempDir, "Store"); pstWalStoreCustomPath = new File(tempDir, "WalStore"); pstWalArchCustomPath = new File(tempDir, "WalArchive"); dsCfg.setStoragePath(pstStoreCustomPath.getAbsolutePath()); dsCfg.setWalPath(pstWalStoreCustomPath.getAbsolutePath()); dsCfg.setWalArchivePath(pstWalArchCustomPath.getAbsolutePath()); } dsCfg.setDefaultDataRegionConfiguration(new DataRegionConfiguration() .setMaxSize(32L * 1024 * 1024) .setPersistenceEnabled(true)); cfg.setDataStorageConfiguration(dsCfg); if (strLog != null) cfg.setGridLogger(strLog); return cfg; }
cfg.getDataStorageConfiguration().setStoragePath(new File(store, FLAKY_STORAGE_PATH).getAbsolutePath());
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String name) throws Exception { IgniteConfiguration cfg = super.getConfiguration(name); cfg.setConsistentId(name); String storePath = getClass().getSimpleName().toLowerCase() + "/" + getName(); cfg.setDataStorageConfiguration( new DataStorageConfiguration() .setWalMode(WALMode.LOG_ONLY) .setStoragePath(storePath) .setWalPath(storePath + "/wal") .setWalArchivePath(storePath + "/archive") .setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setPersistenceEnabled(true) .setMaxSize(2L * 1024 * 1024 * 1024) ) ); return cfg; }
dsCfg.setFileIOFactory(psCfg.getFileIOFactory()); dsCfg.setLockWaitTime(psCfg.getLockWaitTime()); dsCfg.setStoragePath(psCfg.getPersistentStorePath()); dsCfg.setMetricsRateTimeInterval(psCfg.getRateTimeInterval()); dsCfg.setMetricsSubIntervalCount(psCfg.getSubIntervals());
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); cfg.setConsistentId("ConsId" + (condId++)); ((TcpDiscoverySpi)cfg.getDiscoverySpi()).setIpFinder(primaryIpFinder); DataStorageConfiguration pCfg = new DataStorageConfiguration(); pCfg.setStoragePath(testName + "/db"); pCfg.setWalArchivePath(testName + "/db/wal/archive"); pCfg.setWalPath(testName + "/db/wal"); pCfg.setDefaultDataRegionConfiguration( new DataRegionConfiguration().setMaxSize(200L * 1024 * 1024).setPersistenceEnabled(true)); pCfg.setWalMode(WALMode.LOG_ONLY); pCfg.setPageSize(1024); pCfg.setConcurrencyLevel(64); cfg.setDataStorageConfiguration(pCfg); return cfg; }
/** * @param gridName Grid name. */ @Override protected IgniteConfiguration getConfiguration(final String gridName) throws Exception { final IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration pCfg = new DataStorageConfiguration(); pCfg.setStoragePath(testName() + "/db"); pCfg.setWalArchivePath(testName() + "/db/wal/archive"); pCfg.setWalPath(testName() + "/db/wal"); pCfg.setPageSize(1024); pCfg.setConcurrencyLevel(64); pCfg.setWalMode(WALMode.LOG_ONLY); pCfg.setDefaultDataRegionConfiguration( new DataRegionConfiguration().setMaxSize(200L * 1024 * 1024).setPersistenceEnabled(true)); cfg.setDataStorageConfiguration(pCfg); return cfg; }
/** {@inheritDoc} */ @SuppressWarnings("deprecation") @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName, IgniteTestResources rsrcs) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName, rsrcs); DataStorageConfiguration memCfg = new DataStorageConfiguration() .setDefaultDataRegionConfiguration( new DataRegionConfiguration().setMaxSize(300L * 1024 * 1024).setPersistenceEnabled(true)) .setStoragePath(workSubdir() + "/db") .setWalArchivePath(workSubdir() + "/db/wal/archive") .setWalPath(workSubdir() + "/db/wal") .setWalMode(WALMode.LOG_ONLY); cfg.setDataStorageConfiguration(memCfg); cfg.setMarshaller(new OptimizedMarshaller()); return cfg; }
.setStoragePath(in.readString()) .setCheckpointFrequency(in.readLong()) .setCheckpointThreads(in.readInt())
dsCfg.setFileIOFactory(psCfg.getFileIOFactory()); dsCfg.setLockWaitTime(psCfg.getLockWaitTime()); dsCfg.setStoragePath(psCfg.getPersistentStorePath()); dsCfg.setMetricsRateTimeInterval(psCfg.getRateTimeInterval()); dsCfg.setMetricsSubIntervalCount(psCfg.getSubIntervals());
.setStoragePath(in.readString()) .setCheckpointFrequency(in.readLong()) .setCheckpointThreads(in.readInt())