|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mobios.mckoi.store.BufferManager
public final class BufferManager
A centralized manager that manages one or more AbstractBufferedFile implementstions. This object manages memory usage of the children buffers and implements a caching strategy for purging old pages from memory.
Constructor Summary | |
---|---|
BufferManager(String paging_implementation,
int max_pages,
int page_size)
Constructs the manager. |
Method Summary | |
---|---|
void |
addTime(long l)
|
FileBufferAccessor |
createBufferedAccessor(RandomAccessFile file,
String mode)
Creates and returns a FileBufferAccess object that is used to access the RandomAccessFile through this buffer manager. |
long |
getCache_hit_count()
|
long |
getCache_miss_count()
|
void |
printStatistics()
Added by Willard, 2005.05.24 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferManager(String paging_implementation, int max_pages, int page_size)
Method Detail |
---|
public FileBufferAccessor createBufferedAccessor(RandomAccessFile file, String mode) throws IOException
IOException
public long getCache_hit_count()
public long getCache_miss_count()
public void addTime(long l)
l
- public void printStatistics()
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |