public class FsTemporarySnapshotWriter extends FsSnapshotWriter
In this respect, dataFile => temporaryFile, and snapshotFile is the correct final destination.
checksumFile, config, dataFile, dataOutputStream, lastSnapshot, LOG| Constructor and Description |
|---|
FsTemporarySnapshotWriter(FsSnapshotStorageConfiguration config,
File temporaryFile,
File checksumFile,
File snapshotFile,
FsReadableSnapshot lastSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Refuse the snapshot by closing the output stream and deleting the snapshot data.
|
protected void |
commit(byte[] checksum) |
protected String |
getDataFileName() |
File |
getSnapshotFile() |
commit, deleteLastSnapshot, getChecksumFile, getDataFile, getOutputStream, initOutputStreams, validateAndCommit, writeChecksumFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteSnapshotpublic FsTemporarySnapshotWriter(FsSnapshotStorageConfiguration config, File temporaryFile, File checksumFile, File snapshotFile, FsReadableSnapshot lastSnapshot)
protected void commit(byte[] checksum)
throws Exception
commit in class FsSnapshotWriterExceptionpublic void abort()
SnapshotWriterabort in interface SnapshotWriterabort in class FsSnapshotWriterprotected String getDataFileName()
getDataFileName in class FsSnapshotWriterpublic File getSnapshotFile()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.