public class SnapshotStore
extends java.lang.Object
| Constructor and Description |
|---|
SnapshotStore(java.io.File snapshotDirectory,
DocumentSnapshotFactory documentSnapshotFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOldSnapshots() |
long |
getOldestSnapsotToKeep()
Deprecated.
This method will be removed in a future release
|
SnapshotReader |
openMostRecentSnapshot() |
SnapshotWriter |
openNewSnapshotWriter() |
static void |
stitch(java.io.File snapshotDir,
MonitorCheckpoint checkpoint,
DocumentSnapshotFactory documentSnapshotFactory) |
public SnapshotStore(java.io.File snapshotDirectory,
DocumentSnapshotFactory documentSnapshotFactory)
throws SnapshotStoreException
snapshotDirectory - the directory in which to store the snapshots.
Must be non-null. If it does not exist, it will be created.documentSnapshotFactory - factory for creating DocumentSnapshotsSnapshotStoreException - if the snapshot directory does not exist and
cannot be createdpublic SnapshotWriter openNewSnapshotWriter() throws SnapshotStoreException
SnapshotStoreExceptionpublic SnapshotReader openMostRecentSnapshot() throws SnapshotStoreException
SnapshotStoreExceptionpublic void deleteOldSnapshots()
@Deprecated public long getOldestSnapsotToKeep()
public static void stitch(java.io.File snapshotDir,
MonitorCheckpoint checkpoint,
DocumentSnapshotFactory documentSnapshotFactory)
throws java.io.IOException,
SnapshotStoreException,
java.lang.InterruptedException
java.io.IOExceptionSnapshotStoreExceptionjava.lang.InterruptedException