|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.persistence.imp.AbstractObjectLog
com.atomikos.persistence.imp.StreamObjectLog
public class StreamObjectLog
| Constructor Summary | |
|---|---|
StreamObjectLog(LogStream logstream,
long maxFlushesBetweenCheckpoints)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the log after use. |
void |
delete(Object id)
Deletes the given object from the log. |
void |
flush(Recoverable rec)
Flushes to permanent memory. |
void |
flush(SystemLogImage img,
boolean shouldSync)
|
void |
init()
Initializes the object log. |
Vector |
recover()
Recovers all non-deleted object images flushed so far. |
Recoverable |
recover(Object id)
Recovers the instance with given ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamObjectLog(LogStream logstream,
long maxFlushesBetweenCheckpoints)
| Method Detail |
|---|
public void init()
throws LogException
ObjectLog
init in interface ObjectLogLogException - If error occurs.ObjectLog
public Vector recover()
throws LogException
ObjectLog
recover in interface ObjectLogLogExceptionObjectLog
public void flush(Recoverable rec)
throws LogException
ObjectLog
flush in interface ObjectLogrec - Recoverable instance. NOTE: if the instance has the same
ObjectId as a previous one, then the latter will be overridden
by this one! More precisely, history() will only return the
last image for a given ObjectId.
LogException - if it did not work.ObjectLog
public void flush(SystemLogImage img,
boolean shouldSync)
throws LogException
flush in class AbstractObjectLogLogException
public Recoverable recover(Object id)
throws LogException
ObjectLog
recover in interface ObjectLogid - The id to recover. @return Recoverable The recovered logimage,
null if not found. @exception LogException On failure.
LogExceptionObjectLog
public void delete(Object id)
throws LogException
ObjectLog
delete in interface ObjectLogid - The object UID.
LogException - on failure.ObjectLog
public void close()
throws LogException
ObjectLog
close in interface ObjectLogLogException - on failure.ObjectLog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||