/** * Does exactly the same as the parameterless version, except it does not create and upload the transactionfile. Instead * it uses the files that are passed. Used for resuming existing transactions. Only call this function if resuming * cannot cause invalid states. */ public void commit(File localTransactionFile, TransactionRemoteFile remoteTransactionFile) throws StorageException { logger.log(Level.INFO, "- Starting to upload data in commit."); uploadAndMoveToTempLocation(); moveToFinalLocation(); deleteTransactionFile(localTransactionFile, remoteTransactionFile); deleteTempRemoteFiles(); }