public abstract class LogHandler extends Object
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 and Description | 
|---|
| LogHandler()Creates a LogHandler for a ReliableLog. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public abstract void snapshot(OutputStream out) throws Exception
out - the output streamException - can raise any exceptionpublic abstract void recover(InputStream in) throws Exception
in - the input streamException - can raise any exceptionpublic void writeUpdate(OutputStream out, Object value) throws Exception
out - the output streamvalue - the update objectException - can raise any exceptionpublic void readUpdate(InputStream in) throws Exception
in - the input streamException - can raise any exceptionpublic abstract void applyUpdate(Object update) throws Exception
update - the update objectException - can raise any exceptionCopyright © 2016–2018. All rights reserved.