Search in sources :

Example 1 with AsyncFileIOFactory

use of org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory in project ignite by apache.

the class IgnitePdsThreadInterruptionTest method storageConfiguration.

/**
 * @return DataStorage configuration.
 */
private DataStorageConfiguration storageConfiguration() {
    DataRegionConfiguration regionCfg = new DataRegionConfiguration().setInitialSize(10L * 1024L * 1024L).setMaxSize(10L * 1024L * 1024L).setPageEvictionMode(DataPageEvictionMode.RANDOM_LRU);
    DataStorageConfiguration cfg = new DataStorageConfiguration().setWalMode(WALMode.LOG_ONLY).setWalFsyncDelayNanos(0).setPageSize(PAGE_SIZE).setFileIOFactory(new AsyncFileIOFactory());
    cfg.setDefaultDataRegionConfiguration(regionCfg);
    return cfg;
}
Also used : DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) AsyncFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory)

Aggregations

DataRegionConfiguration (org.apache.ignite.configuration.DataRegionConfiguration)1 DataStorageConfiguration (org.apache.ignite.configuration.DataStorageConfiguration)1 AsyncFileIOFactory (org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory)1