use of org.apache.ignite.internal.pagememory.mem.DirectMemoryProvider in project ignite-3 by apache.
the class PageMemoryNoLoadSelfTest method memory.
/**
* Creates new page memory instance.
*
* @return Page memory implementation.
* @throws Exception If failed.
*/
protected PageMemory memory() throws Exception {
dataRegionCfg.change(cfg -> cfg.convert(PageMemoryDataRegionChange.class).changePageSize(PAGE_SIZE).changeInitSize(MAX_MEMORY_SIZE).changeMaxSize(MAX_MEMORY_SIZE)).get(1, SECONDS);
DirectMemoryProvider provider = new UnsafeMemoryProvider(null);
PageIoRegistry ioRegistry = new PageIoRegistry();
ioRegistry.loadFromServiceLoader();
return new PageMemoryNoStoreImpl(provider, (PageMemoryDataRegionConfiguration) fixConfiguration(dataRegionCfg), ioRegistry);
}
Aggregations