|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.reliableLog.LogHandler
com.sun.jini.phoenix.Activation.ActLogHandler
private static class Activation.ActLogHandler
Handler for the log that knows how to take the initial snapshot and apply an update (a LogRecord) to the current state.
Field Summary | |
---|---|
private Activation |
state
|
Constructor Summary | |
---|---|
Activation.ActLogHandler()
|
Method Summary | |
---|---|
void |
applyUpdate(Object update)
Reads a stably logged update (a serializable object) from a stream. |
Activation |
getState()
|
void |
readUpdate(InputStream in)
Reads a stably logged update (a serializable object) from a stream. |
void |
recover(InputStream in)
Read the snapshot from a stream. |
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 |
Field Detail |
---|
private Activation state
Constructor Detail |
---|
Activation.ActLogHandler()
Method Detail |
---|
public Activation getState()
public void snapshot(OutputStream out) throws Exception
LogHandler
snapshot
in class LogHandler
out
- the output stream
Exception
- can raise any exceptionpublic void recover(InputStream in) throws Exception
LogHandler
recover
in class LogHandler
in
- the input stream
Exception
- can raise any exceptionpublic void writeUpdate(OutputStream out, Object value) throws Exception
LogHandler
writeUpdate
in class LogHandler
out
- the output streamvalue
- the update object
Exception
- can raise any exceptionpublic void readUpdate(InputStream in) throws Exception
LogHandler
readUpdate
in class LogHandler
in
- the input stream
Exception
- can raise any exceptionpublic void applyUpdate(Object update) throws Exception
LogHandler
applyUpdate
in class LogHandler
update
- the update object
Exception
- can raise any exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |