Package org.syncany.operations.down
Class ApplyChangesOperation
- java.lang.Object
-
- org.syncany.operations.Operation
-
- org.syncany.operations.down.ApplyChangesOperation
-
public class ApplyChangesOperation extends Operation
Applies a given winners database to the local directory.Steps:
- Determine whether the local branch needs to be updated (new database versions); if so, determine
local
FileSystemAction
s - Determine, download and decrypt required multi chunks from remote storage from file actions
(implemented in
determineMultiChunksToDownload()
, anddownloadAndDecryptMultiChunks()
) - Apply file system actions locally, creating conflict files where necessary if local file does
not match the expected file (implemented in
applyFileSystemActions()
- Determine whether the local branch needs to be updated (new database versions); if so, determine
local
-
-
Constructor Summary
Constructors Constructor Description ApplyChangesOperation(Config config, SqlDatabase localDatabase, TransferManager transferManager, MemoryDatabase winnersDatabase, DownOperationResult result, boolean cleanupOccurred, java.util.List<PartialFileHistory> preDeleteFileHistoriesWithLastVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationResult
execute()
Executes the operation synchronously and returns a result when the operation exits.
-
-
-
Constructor Detail
-
ApplyChangesOperation
public ApplyChangesOperation(Config config, SqlDatabase localDatabase, TransferManager transferManager, MemoryDatabase winnersDatabase, DownOperationResult result, boolean cleanupOccurred, java.util.List<PartialFileHistory> preDeleteFileHistoriesWithLastVersion)
-
-
Method Detail
-
execute
public OperationResult execute() throws java.lang.Exception
Description copied from class:Operation
Executes the operation synchronously and returns a result when the operation exits. Using covariance is recommend, that is OperationFoo should override execute so as to return a OperationFooResult rather than OperationResult.
-
-