|
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.AbstractStore mobios.mckoi.store.ScatteringFileStore
public final class ScatteringFileStore
An implementation of AbstractStore that scatters a store over one or more files in the filesystem. If the amount of data stored in one store exceeds a given threshold the data grows into a new file.
A ScatteringFileStore has a buffering strategy for accessing the underlying files that is implementation defined (by the BufferManager).
Constructor Summary | |
---|---|
ScatteringFileStore(File path,
String file_name,
String first_ext,
long max_slice_size,
BufferManager buffer_manager,
boolean read_only)
Constructs the ScatteringFileStore. |
Method Summary | |
---|---|
void |
convertToScatteringStore(File f)
Given a file, this will convert to a scattering file store with files no larger than the maximum slice size. |
boolean |
delete()
Deletes this store from the file system. |
boolean |
exists()
Returns true if this store exists in the file system. |
void |
flush()
Flushes any changes to the underlying storage device if the store implements memory mapping or buffering. |
void |
printBufferStatistics()
Prints statistics about the buffer manager. |
void |
synch()
Flushes and synchronizes any changes made to the store with the underlying persistent device. |
Methods inherited from class mobios.mckoi.store.AbstractStore |
---|
alloc, close, findAllocatedAreasNotIn, free, getAllAreas, getArea, getFixedArea, getFixedArea, getInputStream, getOutputStream, iterator, lastCloseClean, open, openScanAndFix, setFixedArea, statsScan, totalAllocatedSinceStart |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScatteringFileStore(File path, String file_name, String first_ext, long max_slice_size, BufferManager buffer_manager, boolean read_only)
Method Detail |
---|
public void convertToScatteringStore(File f) throws IOException
IOException
public boolean delete() throws IOException
IOException
public boolean exists() throws IOException
IOException
public void flush() throws IOException
Store
IOException
public void synch() throws IOException
Store
IOException
public void printBufferStatistics()
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |