@InterfaceAudience.Private public class SharedMemoryMmapIOEngine extends FileMmapIOEngine
MemoryType#SHARED type when serving the
data from this pmem address space. We need not copy the blocks to the onheap space as we need to
do for the case of ExclusiveMemoryMmapIOEngine.bufferArray, LOG, path, sizefilePaths| Constructor and Description |
|---|
SharedMemoryMmapIOEngine(String filePath,
long capacity) |
| Modifier and Type | Method and Description |
|---|---|
Cacheable |
read(BucketEntry be)
Transfers data from IOEngine to a Cacheable object.
|
boolean |
usesSharedMemory()
IOEngine uses shared memory means, when reading Cacheable from it, those refers to the same
memory area as used by the Engine for caching it.
|
isPersistent, shutdown, sync, toString, write, writecalculateChecksum, verifyFileIntegritypublic SharedMemoryMmapIOEngine(String filePath, long capacity) throws IOException
IOExceptionpublic boolean usesSharedMemory()
IOEnginepublic Cacheable read(BucketEntry be) throws IOException
IOEngineread in interface IOEngineread in class FileMmapIOEnginebe - maintains an (offset,len,refCnt) inside.IOException - when any IO error happenCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.