private class NormServerBaseImpl.OurLogHandler extends LogHandler
LogHandler
used by NormServerBaseImplModifier | Constructor and Description |
---|---|
private |
NormServerBaseImpl.OurLogHandler() |
Modifier and Type | Method and Description |
---|---|
void |
applyUpdate(Object update)
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.
|
readUpdate, writeUpdate
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 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.