Package org.syncany.plugins.transfer

Examples of org.syncany.plugins.transfer.RemoteTransaction


    this.eventBus = LocalEventBus.getInstance();   
    this.options = options;
    this.result = new UpOperationResult();
    this.localDatabase = new SqlDatabase(config);
    this.remoteTransaction = new RemoteTransaction(config, transferManager);
  }
View Full Code Here


      transferManager.removeUnreferencedTemporaryFiles();
    }

    // Committing in two steps because a) at this point it is atomic b) such that
    // the purge file can be accounted for when merging, if needed
    remoteTransaction = new RemoteTransaction(config, transferManager);

    if (options.isMergeRemoteFiles()) {
      mergeRemoteFiles();
    }
View Full Code Here

  private void removeOldVersions() throws Exception {
    logger.log(Level.INFO, "START TX removeOldVersions() ...");

    Map<FileHistoryId, FileVersion> purgeFileVersions = new HashMap<>();
    this.remoteTransaction = new RemoteTransaction(config, transferManager);

    purgeFileVersions.putAll(localDatabase.getFileHistoriesWithMaxPurgeVersion(options.getKeepVersionsCount()));
    purgeFileVersions.putAll(localDatabase.getDeletedFileVersions());

    boolean purgeDatabaseVersionNecessary = purgeFileVersions.size() > 0;
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.RemoteTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.