patch for concurrent uploads

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineSmartExecutor@114756 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Gianpaolo Coro 2015-05-14 21:39:33 +00:00
parent 747b23f636
commit f9c1eff739
1 changed files with 4 additions and 1 deletions

View File

@ -594,13 +594,16 @@ public class QueueJobManager {
AnalysisLogger.getLogger().info("Unnecessary to Uploading Files");
AnalysisLogger.getLogger().info("Loading files");
//patch for concurrent uploads
String tempdir = ""+UUID.randomUUID()+"/";
for (File sfile : files) {
if (sfile.getName().startsWith("."))
continue;
String localf = sfile.getAbsolutePath();
String filename = sfile.getName();
String remotef = remoteDir + sfile.getName();
String remotef = remoteDir + tempdir+sfile.getName();
if (uploadFiles) {
client.put(true).LFile(localf).RFile(remotef);
AnalysisLogger.getLogger().info("Uploading File "+localf+" as remote file "+remotef);