private static class Activation.ActLogHandler extends LogHandler
| Modifier and Type | Field and Description |
|---|---|
private Activation |
state |
| Constructor and Description |
|---|
ActLogHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private Activation state
public Activation getState()
public void snapshot(OutputStream out) throws Exception
LogHandlersnapshot in class LogHandlerout - the output streamException - can raise any exceptionpublic void recover(InputStream in) throws Exception
LogHandlerrecover in class LogHandlerin - the input streamException - can raise any exceptionpublic void writeUpdate(OutputStream out, Object value) throws Exception
LogHandlerwriteUpdate in class LogHandlerout - the output streamvalue - the update objectException - can raise any exceptionpublic void readUpdate(InputStream in) throws Exception
LogHandlerreadUpdate in class LogHandlerin - the input streamException - can raise any exceptionpublic void applyUpdate(Object update) throws Exception
LogHandlerapplyUpdate in class LogHandlerupdate - the update objectException - can raise any exceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.