|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.reliableLog.LogHandler
public abstract class LogHandler
A LogHandler represents snapshots and update records as serializable objects.
This implementation does not know how to create an initial snaphot or apply an update to a snapshot. The client must specify these methods via a subclass.
ReliableLog
Constructor Summary | |
---|---|
LogHandler()
Creates a LogHandler for a ReliableLog. |
Method Summary | |
---|---|
abstract void |
applyUpdate(Object update)
Reads a stably logged update (a serializable object) from a stream. |
void |
readUpdate(InputStream in)
Reads a stably logged update (a serializable object) from a stream. |
abstract void |
recover(InputStream in)
Read the snapshot from a stream. |
abstract void |
snapshot(OutputStream out)
Writes the snapshot to a stream. |
void |
writeUpdate(OutputStream out,
Object value)
Writes the representation (a serializable object) of an update to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogHandler()
Method Detail |
---|
public abstract void snapshot(OutputStream out) throws Exception
out
- the output stream
Exception
- can raise any exceptionpublic abstract void recover(InputStream in) throws Exception
in
- the input stream
Exception
- can raise any exceptionpublic void writeUpdate(OutputStream out, Object value) throws Exception
out
- the output streamvalue
- the update object
Exception
- can raise any exceptionpublic void readUpdate(InputStream in) throws Exception
in
- the input stream
Exception
- can raise any exceptionpublic abstract void applyUpdate(Object update) throws Exception
update
- the update object
Exception
- can raise any exception
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |