Package org.syncany.operations
Class Assembler
- java.lang.Object
-
- org.syncany.operations.Assembler
-
public class Assembler extends java.lang.Object
The assembler re-assembles files broken down through the deduplication mechanisms of theDeduper
and its corresponding classes (chunker, multichunker, etc.).It uses the local
SqlDatabase
and an optionalMemoryDatabase
to perform file checksum and chunk checksum lookups.
-
-
Constructor Summary
Constructors Constructor Description Assembler(Config config, SqlDatabase localDatabase)
Assembler(Config config, SqlDatabase localDatabase, MemoryDatabase memoryDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
assembleToCache(FileVersion fileVersion)
Assembles the given file version to the local cache and returns a reference to the cached file after successfully assembling the file.
-
-
-
Constructor Detail
-
Assembler
public Assembler(Config config, SqlDatabase localDatabase)
-
Assembler
public Assembler(Config config, SqlDatabase localDatabase, MemoryDatabase memoryDatabase)
-
-
Method Detail
-
assembleToCache
public java.io.File assembleToCache(FileVersion fileVersion) throws java.lang.Exception
Assembles the given file version to the local cache and returns a reference to the cached file after successfully assembling the file.- Throws:
java.lang.Exception
-
-