|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.persistence.imp.FileLogStream
public class FileLogStream
A file implementation of a LogStream.
| Constructor Summary | |
|---|---|
FileLogStream(String baseDir,
String baseName,
Console console)
|
|
| Method Summary | |
|---|---|
void |
close()
For proper termination: a close method. |
void |
finalize()
|
void |
flushObject(Object o,
boolean shouldSync)
Flush (force) an object to the stream. |
long |
getSize()
Get the size of the stream. |
Vector |
recover()
Reads the log contents, and initializes the data structure. |
void |
writeCheckpoint(Enumeration elements)
After intial recovery, it is good practice to write a checkpoint with only the most recent data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileLogStream(String baseDir,
String baseName,
Console console)
throws IOException
IOException| Method Detail |
|---|
public Vector recover()
throws LogException
LogStream
recover in interface LogStreamLogException - On failure.
public void writeCheckpoint(Enumeration elements)
throws LogException
LogStream
writeCheckpoint in interface LogStreamelements - The elements to keep in the log.
LogException - On failure.
public void flushObject(Object o,
boolean shouldSync)
throws LogException
LogStream
flushObject in interface LogStreamLogException - On failure.
public void close()
throws LogException
LogStream
close in interface LogStreamLogException - On failure.
public void finalize()
throws Throwable
finalize in class ObjectThrowable
public long getSize()
throws LogException
LogStream
getSize in interface LogStreamLogException - On error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||