public interface SnapShot
| Modifier and Type | Method and Description |
|---|---|
void |
close()
free resources from this snapshot immediately
|
long |
deserialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions)
deserialize a data tree from the last valid snapshot and
return the last zxid that was deserialized
|
java.io.File |
findMostRecentSnapshot()
find the most recent snapshot file
|
void |
serialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
java.io.File name)
persist the datatree and the sessions into a persistence storage
|
long deserialize(DataTree dt, java.util.Map<java.lang.Long,java.lang.Integer> sessions) throws java.io.IOException
dt - the datatree to be deserialized intosessions - the sessions to be deserialized intojava.io.IOExceptionvoid serialize(DataTree dt, java.util.Map<java.lang.Long,java.lang.Integer> sessions, java.io.File name) throws java.io.IOException
dt - the datatree to be serializedsessions - java.io.IOExceptionjava.io.File findMostRecentSnapshot()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionCopyright © 2016 The Apache Software Foundation