public class ProgressDirectTransfer extends ProgressBarTransfer
filesize, intervalCallback, networkTransaction
_INFO_ARGS, block, blocksize, fileinfo, fileInfo, filename, future, id, idt, ismd5, isMD5, localFilename, logger, NO_INFO_ARGS, nolog, normalInfoAsWarn, remoteHost, rhost, rule, rulename, snormalInfoAsWarn, startTime, ttimestart
Constructor and Description |
---|
ProgressDirectTransfer(R66Future future,
String remoteHost,
String filename,
String rulename,
String fileinfo,
boolean isMD5,
int blocksize,
long id,
NetworkTransaction networkTransaction,
long callbackdelay,
JProgressBar progressBar,
JEditorPane textFieldStatus) |
Modifier and Type | Method and Description |
---|---|
void |
callBack(int currentBlock,
int blocksize)
This function will be called every 100ms (or other fixed value in
INTERVALCALLBACK).
|
void |
lastCallBack(boolean success,
int currentBlock,
int blocksize)
This function will be called only once when the transfer is over
|
run
clear, finalizeInErrorTransferRequest, getLocalFiles, getParams, getParamsInternal, getRemoteFiles, initRequest, prepareKoOutputFormat, prepareKoOutputFormat, prepareOkOutputFormat, prepareSubmitKoOutputFormat, prepareSubmitOkOutputFormat, sendValidPacket, setNormalInfoAsWarn, tryConnect
public ProgressDirectTransfer(R66Future future, String remoteHost, String filename, String rulename, String fileinfo, boolean isMD5, int blocksize, long id, NetworkTransaction networkTransaction, long callbackdelay, JProgressBar progressBar, JEditorPane textFieldStatus)
future
- remoteHost
- filename
- rulename
- fileinfo
- isMD5
- blocksize
- id
- networkTransaction
- callbackdelay
- public void callBack(int currentBlock, int blocksize)
ProgressBarTransfer
callBack
in class ProgressBarTransfer
currentBlock
- the current block rank (from 0 to n-1)blocksize
- blocksize of 1 blockpublic void lastCallBack(boolean success, int currentBlock, int blocksize)
ProgressBarTransfer
lastCallBack
in class ProgressBarTransfer
success
- True if the transfer is successfulCopyright © 2009–2020 Waarp. All rights reserved.