@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, size
filePaths
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, write
calculateChecksum, verifyFileIntegrity
public SharedMemoryMmapIOEngine(String filePath, long capacity) throws IOException
IOException
public boolean usesSharedMemory()
IOEngine
public Cacheable read(BucketEntry be) throws IOException
IOEngine
read
in interface IOEngine
read
in class FileMmapIOEngine
be
- maintains an (offset,len,refCnt) inside.IOException
- when any IO error happenCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.