Package org.syncany.plugins.transfer.files

Examples of org.syncany.plugins.transfer.files.TransactionRemoteFile


    TransactionTO cancelledOwnTransaction = cancelledTransaction;
    addRollbackActionsToTransaction(rollbackTransaction, cancelledOwnTransaction.getActions());

    // Get corresponding remote file of transaction and delete it.
    TransactionRemoteFile cancelledOwnTransactionFile = remoteCancelledTransaction;
    rollbackTransaction.delete(cancelledOwnTransactionFile);

    // Nicer debug output
    if (logger.isLoggable(Level.INFO)) {
      logger.log(Level.INFO, "Unfinished transaction " + cancelledOwnTransactionFile + ". Rollback necessary!");
View Full Code Here


      logger.log(Level.INFO, "- Empty transaction, not committing anything.");
      return;
    }

    File localTransactionFile = writeLocalTransactionFile();
    TransactionRemoteFile remoteTransactionFile = uploadTransactionFile(localTransactionFile);

    uploadAndMoveToTempLocation();
    moveToFinalLocation();

    deleteTransactionFile(localTransactionFile, remoteTransactionFile);
View Full Code Here

      throw new StorageException("Could not create temporary file for transaction", e);
    }
  }

  private TransactionRemoteFile uploadTransactionFile(File localTransactionFile) throws StorageException {
    TransactionRemoteFile remoteTransactionFile = new TransactionRemoteFile(this);

    eventBus.post(new UpUploadFileSyncExternalEvent(config.getLocalDir().getAbsolutePath(), remoteTransactionFile.getName()));

    logger.log(Level.INFO, "- Uploading remote transaction file {0} ...", remoteTransactionFile);
    transferManager.upload(localTransactionFile, remoteTransactionFile);

    return remoteTransactionFile;
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.files.TransactionRemoteFile

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.