public class FsReadableSnapshot extends FsSnapshotMetadata implements ReadableSnapshot
| Modifier and Type | Field and Description |
|---|---|
protected File |
checksumFile |
protected FsSnapshotStorageConfiguration |
config |
protected File |
dataFile |
protected DigestInputStream |
inputStream |
checksum, name, position, replicable, size| Constructor and Description |
|---|
FsReadableSnapshot(FsSnapshotStorageConfiguration config,
File dataFile,
File checksumFile,
long position) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the snapshot and related data.
|
File |
getChecksumFile() |
InputStream |
getData()
Input stream to read the snapshot data.
|
File |
getDataFile() |
protected DigestInputStream |
initDataInputStream() |
protected void |
tryInit() |
void |
validateAndClose()
Consumers of this API must call this method after having read the input stream.
|
getChecksum, getName, getPosition, getSize, isReplicableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecoverFromSnapshotgetChecksum, getName, getPosition, getSize, isReplicableprotected final FsSnapshotStorageConfiguration config
protected final File dataFile
protected final File checksumFile
protected DigestInputStream inputStream
public FsReadableSnapshot(FsSnapshotStorageConfiguration config, File dataFile, File checksumFile, long position)
protected void tryInit()
protected DigestInputStream initDataInputStream() throws Exception
Exceptionpublic void validateAndClose()
throws InvalidSnapshotException
ReadableSnapshotvalidateAndClose in interface ReadableSnapshotInvalidSnapshotException - if not validpublic void delete()
ReadableSnapshotdelete in interface ReadableSnapshotpublic InputStream getData()
ReadableSnapshotgetData in interface ReadableSnapshotpublic File getChecksumFile()
public File getDataFile()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.