|
|||||||||
| 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
Copyright © 2001, Atomikos. All rights reserved. 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)
Flush (force) an object to the stream. |
long |
getSize()
Get the size of the stream. |
void |
monitor(JFrame frame)
|
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 void monitor(JFrame frame)
public long getSize()
throws LogException
LogStream
getSize in interface LogStreamLogException - On error.
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)
throws LogException
LogStream
flushObject in interface LogStreamo - The object to flush.
LogException - On failure.
public void close()
throws LogException
LogStream
close in interface LogStreamLogException - On failure.
public void finalize()
throws Throwable
finalize in class ObjectThrowable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||