private static class Activation.ActLogHandler extends LogHandler
Modifier and Type | Field and Description |
---|---|
private Activation |
state |
Constructor and Description |
---|
Activation.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
LogHandler
snapshot
in class LogHandler
out
- the output streamException
- can raise any exceptionpublic void recover(InputStream in) throws Exception
LogHandler
recover
in class LogHandler
in
- the input streamException
- can raise any exceptionpublic void writeUpdate(OutputStream out, Object value) throws Exception
LogHandler
writeUpdate
in class LogHandler
out
- the output streamvalue
- the update objectException
- can raise any exceptionpublic void readUpdate(InputStream in) throws Exception
LogHandler
readUpdate
in class LogHandler
in
- the input streamException
- can raise any exceptionpublic void applyUpdate(Object update) throws Exception
LogHandler
applyUpdate
in class LogHandler
update
- 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.