|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnapShot
snapshot interface for the persistence layer. implement this interface for implementing snapshots.
Method Summary | |
---|---|
long |
deserialize(DataTree dt,
Map<Long,Integer> sessions)
deserialize a data tree from the last valid snapshot and return the last zxid that was deserialized |
File |
findMostRecentSnapshot()
find the most recent snapshot file |
void |
serialize(DataTree dt,
Map<Long,Integer> sessions,
File name)
persist the datatree and the sessions into a persistence storage |
Method Detail |
---|
long deserialize(DataTree dt, Map<Long,Integer> sessions) throws IOException
dt
- the datatree to be deserialized intosessions
- the sessions to be deserialized into
IOException
void serialize(DataTree dt, Map<Long,Integer> sessions, File name) throws IOException
dt
- the datatree to be serializedsessions
-
IOException
File findMostRecentSnapshot() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |