summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-01-25 23:18:16 (GMT)
committer LISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-01-25 23:18:16 (GMT)
commitf12b8de0525e82bf92681c69f1f8e73f6a2f6155 (patch)
tree58b3cdc7b4cfd86d5a322071ad1d5d7f05fd3d5a /idrop-lite
parent61306f1629570408856aac750c134e8d2a72f571 (diff)
downloadQCG-Data-f12b8de0525e82bf92681c69f1f8e73f6a2f6155.zip
QCG-Data-f12b8de0525e82bf92681c69f1f8e73f6a2f6155.tar.gz
QCG-Data-f12b8de0525e82bf92681c69f1f8e73f6a2f6155.tar.bz2
[615] try and fix transfer status updates for parallel transfers?
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/PutTransferRunner.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/PutTransferRunner.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/PutTransferRunner.java
index ad3ea4b..4729fff 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/PutTransferRunner.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/PutTransferRunner.java
@@ -9,6 +9,7 @@ import java.net.URL;
import java.util.List;
import org.irods.jargon.core.exception.JargonException;
+import org.irods.jargon.core.packinstr.TransferOptions;
import org.irods.jargon.core.pub.DataTransferOperations;
import org.irods.jargon.core.transfer.DefaultTransferControlBlock;
import org.irods.jargon.core.transfer.TransferControlBlock;
@@ -69,6 +70,9 @@ public class PutTransferRunner implements Runnable {
TransferControlBlock tcb = null;;
try {
tcb = DefaultTransferControlBlock.instance();
+ TransferOptions transferOptions = idropGui.getiDropCore().getIrodsFileSystem().getIrodsSession().buildTransferOptionsBasedOnJargonProperties();
+ transferOptions.setIntraFileStatusCallbacks(true);
+ tcb.setTransferOptions(transferOptions);
idropGui.getiDropCore().setTransferControlBlock(tcb);
this.transferControlBlock = tcb;
} catch (JargonException ex) {
@@ -79,7 +83,7 @@ public class PutTransferRunner implements Runnable {
log.info("initiating put transfer");
try {
idropGui.getiDropCore().getTransferManager().putOperationURL(localSourceAbsolutePath,
- targetIrodsFileAbsolutePath, sourceResource, idropGui, transferControlBlock);
+ targetIrodsFileAbsolutePath, sourceResource, idropGui, tcb);
} catch (JargonException ex) {
java.util.logging.Logger.getLogger(LocalFileTree.class.getName()).log(
java.util.logging.Level.SEVERE, null, ex);