com.thimbleware.jmemcached.storage.mmap
Class MemoryMappedBlockStore

java.lang.Object
  extended by com.thimbleware.jmemcached.storage.bytebuffer.ByteBufferBlockStore
      extended by com.thimbleware.jmemcached.storage.mmap.MemoryMappedBlockStore

public final class MemoryMappedBlockStore
extends ByteBufferBlockStore

Memory mapped block storage mechanism with a free-list maintained by TreeMap Allows memory for storage to be mapped outside of the VM's main memory, and outside the purvey of the GC. Should offer O(Log(N)) search and free of blocks.


Nested Class Summary
static class MemoryMappedBlockStore.MemoryMappedBlockStoreFactory
           
 
Nested classes/interfaces inherited from class com.thimbleware.jmemcached.storage.bytebuffer.ByteBufferBlockStore
ByteBufferBlockStore.BadAllocationException, ByteBufferBlockStore.ByteBufferBlockStoreFactory
 
Field Summary
 
Fields inherited from class com.thimbleware.jmemcached.storage.bytebuffer.ByteBufferBlockStore
storageBuffer
 
Method Summary
protected  void freeResources()
           
static BlockStoreFactory getFactory()
           
 
Methods inherited from class com.thimbleware.jmemcached.storage.bytebuffer.ByteBufferBlockStore
alloc, clear, close, free, get, getBlockSizeBytes, getFreeBytes, getStoreSizeBytes, initialize, roundUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static BlockStoreFactory getFactory()

freeResources

protected void freeResources()
                      throws java.io.IOException
Overrides:
freeResources in class ByteBufferBlockStore
Throws:
java.io.IOException


Copyright © 2008-2011 ThimbleWare. All Rights Reserved.