| |
|
| java.lang.Object com.jofti.store.AbstractStoreManager
All known Subclasses: com.jofti.store.HashedStoreManager, com.jofti.store.PassThroughStoreManager, com.jofti.store.LRUStoreManager,
AbstractStoreManager | abstract public class AbstractStoreManager implements IStoreManager,IEntrySerializer(Code) | |
Base store manager that deals with non-implementation specific actions. The majority of the
functions are to do with storing and retrieving pages to and from disk.
Sub classesshould make use of the bstract methods provided to allow diffirent types of
cache optimisations to make alleviate some of the direct to disk behaviour.
author: xenephon |
bufferNumber | int bufferNumber(Code) | | |
currentStore | protected int currentStore(Code) | | |
helperNumber | int helperNumber(Code) | | |
keyId | final AtomicLong keyId(Code) | | |
maxBuffers | int maxBuffers(Code) | | |
pendingHits | int pendingHits(Code) | | |
storeRetrieves | int storeRetrieves(Code) | | |
doGetNewPage | protected IPage doGetNewPage(int size)(Code) | | Parameters: size - |
doStore | protected IStoreKey doStore(IStoreKey key, ByteBuffer buffer) throws JoftiException(Code) | |
Method that does the actual work for storing a byteBuffer to disk. The Byte buffer can be
of any size and the filepositions in the key object are used to determine where the data is written.
Parameters: key - Parameters: buffer - throws: JoftiException - |
getNewPage | abstract protected IPage getNewPage(int size)(Code) | |
Used to retrieve a new page. Sub classes should use this method to decorate the
pages in any way they want in order to improve any cache optimisations.
Parameters: size - |
|
|
|