Class BlobStorageSnapshotFileStorage
java.lang.Object
io.datarouter.filesystem.snapshot.storage.file.BlobStorageSnapshotFileStorage
- All Implemented Interfaces:
SnapshotBlockStorageReader,SnapshotFileStorage
public class BlobStorageSnapshotFileStorage extends java.lang.Object implements SnapshotFileStorage
-
Constructor Summary
Constructors Constructor Description BlobStorageSnapshotFileStorage(io.datarouter.storage.file.Directory directory) -
Method Summary
Modifier and Type Method Description voidaddBranchFile(SnapshotPaths paths, FileKey fileKey, CompressedBlocks compressedBlocks)voidaddLeafFile(SnapshotPaths paths, FileKey fileKey, CompressedBlocks compressedBlocks)voidaddRootFile(EncodedBlock encodedBlock)voidaddValueFile(SnapshotPaths paths, FileKey fileKey, CompressedBlocks compressedBlocks)voiddeleteAll()voiddeleteBranchFile(SnapshotPaths paths, FileKey fileKey)voiddeleteLeafFile(SnapshotPaths paths, FileKey fileKey)voiddeleteRootFile()voiddeleteValueFile(SnapshotPaths paths, FileKey fileKey)byte[]getBranchBlock(SnapshotPaths paths, BlockKey blockKey)byte[]getLeafBlock(SnapshotPaths paths, BlockKey blockKey)byte[]getRootBlock()byte[]getValueBlock(SnapshotPaths paths, BlockKey blockKey)java.lang.StringtoStringDebug()
-
Constructor Details
-
BlobStorageSnapshotFileStorage
public BlobStorageSnapshotFileStorage(io.datarouter.storage.file.Directory directory)
-
-
Method Details
-
addRootFile
- Specified by:
addRootFilein interfaceSnapshotFileStorage
-
addBranchFile
- Specified by:
addBranchFilein interfaceSnapshotFileStorage
-
addLeafFile
- Specified by:
addLeafFilein interfaceSnapshotFileStorage
-
addValueFile
- Specified by:
addValueFilein interfaceSnapshotFileStorage
-
getRootBlock
public byte[] getRootBlock()- Specified by:
getRootBlockin interfaceSnapshotBlockStorageReader
-
getBranchBlock
- Specified by:
getBranchBlockin interfaceSnapshotBlockStorageReader
-
getLeafBlock
- Specified by:
getLeafBlockin interfaceSnapshotBlockStorageReader
-
getValueBlock
- Specified by:
getValueBlockin interfaceSnapshotBlockStorageReader
-
deleteRootFile
public void deleteRootFile()- Specified by:
deleteRootFilein interfaceSnapshotFileStorage
-
deleteBranchFile
- Specified by:
deleteBranchFilein interfaceSnapshotFileStorage
-
deleteLeafFile
- Specified by:
deleteLeafFilein interfaceSnapshotFileStorage
-
deleteValueFile
- Specified by:
deleteValueFilein interfaceSnapshotFileStorage
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceSnapshotFileStorage
-
toStringDebug
public java.lang.String toStringDebug()- Specified by:
toStringDebugin interfaceSnapshotFileStorage
-