Search in sources :

Example 6 with OWOWCache

use of com.orientechnologies.orient.core.storage.cache.local.OWOWCache in project orientdb by orientechnologies.

the class ReadWriteDiskCacheTest method initBuffer.

private void initBuffer() throws IOException {
    writeBuffer = new OWOWCache(false, PAGE_SIZE, new OByteBufferPool(PAGE_SIZE), -1, writeAheadLog, -1, WRITE_CACHE_MAX_SIZE, WRITE_CACHE_MAX_SIZE + READ_CACHE_MAX_MEMORY, storageLocal, false, files, 1);
    writeBuffer.loadRegisteredFiles();
    readBuffer = new O2QCache(READ_CACHE_MAX_MEMORY, PAGE_SIZE, false, 50);
}
Also used : OWOWCache(com.orientechnologies.orient.core.storage.cache.local.OWOWCache) OByteBufferPool(com.orientechnologies.common.directmemory.OByteBufferPool)

Aggregations

OWOWCache (com.orientechnologies.orient.core.storage.cache.local.OWOWCache)6 OByteBufferPool (com.orientechnologies.common.directmemory.OByteBufferPool)4 ODiskWriteAheadLog (com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog)2 OStorageSegmentConfiguration (com.orientechnologies.orient.core.config.OStorageSegmentConfiguration)1 OCacheEntry (com.orientechnologies.orient.core.storage.cache.OCacheEntry)1 OCachePointer (com.orientechnologies.orient.core.storage.cache.OCachePointer)1 OWriteCache (com.orientechnologies.orient.core.storage.cache.OWriteCache)1 O2QCache (com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache)1 OLogSequenceNumber (com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OLogSequenceNumber)1 WriteAheadLogTest (com.orientechnologies.orient.core.storage.impl.local.paginated.wal.WriteAheadLogTest)1 File (java.io.File)1