summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-02-10 18:43:45 (GMT)
committer LISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-02-10 18:43:45 (GMT)
commit0733f11acdaf61f2ba1bc034e3be59d7ec83760d (patch)
treea9cced242bcaaeba2ac9a1279021c95ca42d7276 /idrop-lite
parent870e1b94d64becacb7ae457dcfbe97e9ad4ccf39 (diff)
downloadQCG-Data-0733f11acdaf61f2ba1bc034e3be59d7ec83760d.zip
QCG-Data-0733f11acdaf61f2ba1bc034e3be59d7ec83760d.tar.gz
QCG-Data-0733f11acdaf61f2ba1bc034e3be59d7ec83760d.tar.bz2
[#626] just needed to set intrafilestatuscallbacks to true in transfercontrolblocks transfer options
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/GetTransferRunner.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/GetTransferRunner.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/GetTransferRunner.java
index 1fb073a..8dc54fb 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/GetTransferRunner.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/GetTransferRunner.java
@@ -16,7 +16,6 @@ public class GetTransferRunner implements Runnable {
private final List<File> sourceFiles;
private final String targetIrodsFileAbsolutePath;
private final iDropLiteApplet idropGui;
- //private final TransferControlBlock transferControlBlock;
private TransferControlBlock transferControlBlock;
public GetTransferRunner(final iDropLiteApplet gui,
@@ -37,14 +36,9 @@ public class GetTransferRunner implements Runnable {
throw new JargonException("null idrop gui");
}
-// if (transferControlBlock == null) {
-// throw new JargonException("null transferControlBlock");
-// }
-
this.targetIrodsFileAbsolutePath = targetPath;
this.sourceFiles = files;
this.idropGui = gui;
- //this.transferControlBlock = transferControlBlock;
}
@@ -55,11 +49,10 @@ public class GetTransferRunner implements Runnable {
// need to create new Transfer Control Block for each transfer since it needs to be reset
// on how many files there are to transfer and how many have been transferred so far
- TransferControlBlock tcb = null;
try {
- tcb = DefaultTransferControlBlock.instance();
- idropGui.getiDropCore().setTransferControlBlock(tcb);
- this.transferControlBlock = tcb;
+ this.transferControlBlock = idropGui.getiDropCore().getIrodsFileSystem().getIRODSAccessObjectFactory().buildDefaultTransferControlBlockBasedOnJargonProperties();
+ transferControlBlock.getTransferOptions().setIntraFileStatusCallbacks(true);
+ idropGui.getiDropCore().setTransferControlBlock(transferControlBlock);
} catch (JargonException ex) {
java.util.logging.Logger.getLogger(LocalFileTree.class.getName()).log(
java.util.logging.Level.SEVERE, null, ex);