
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
|
runclear, finalizeInErrorTransferRequest, getLocalFiles, getParams, getParamsInternal, getRemoteFiles, initRequest, prepareKoOutputFormat, prepareKoOutputFormat, prepareOkOutputFormat, prepareSubmitKoOutputFormat, prepareSubmitOkOutputFormat, sendValidPacket, setNormalInfoAsWarn, tryConnectpublic 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)
ProgressBarTransfercallBack in class ProgressBarTransfercurrentBlock - the current block rank (from 0 to n-1)blocksize - blocksize of 1 blockpublic void lastCallBack(boolean success,
int currentBlock,
int blocksize)
ProgressBarTransferlastCallBack in class ProgressBarTransfersuccess - True if the transfer is successfulCopyright © 2009–2020 Waarp. All rights reserved.