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;