
public abstract class ProgressBarTransfer extends AbstractTransfer
| Modifier and Type | Field and Description |
|---|---|
protected long |
filesize |
protected long |
intervalCallback |
protected NetworkTransaction |
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| Modifier | Constructor and Description |
|---|---|
protected |
ProgressBarTransfer(R66Future future,
String remoteHost,
String filename,
String rulename,
String fileinfo,
boolean isMD5,
int blocksize,
long id,
NetworkTransaction networkTransaction,
long callbackdelay) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
callBack(int currentBlock,
int blocksize)
This function will be called every 100ms (or other fixed value in
INTERVALCALLBACK).
|
abstract void |
lastCallBack(boolean success,
int currentBlock,
int blocksize)
This function will be called only once when the transfer is over
|
void |
run()
Prior to call this method, the pipeline and NetworkTransaction must have
been initialized.
|
clear, finalizeInErrorTransferRequest, getLocalFiles, getParams, getParamsInternal, getRemoteFiles, initRequest, prepareKoOutputFormat, prepareKoOutputFormat, prepareOkOutputFormat, prepareSubmitKoOutputFormat, prepareSubmitOkOutputFormat, sendValidPacket, setNormalInfoAsWarn, tryConnectprotected final NetworkTransaction networkTransaction
protected long intervalCallback
protected long filesize
public abstract void callBack(int currentBlock,
int blocksize)
currentBlock - the current block rank (from 0 to n-1)blocksize - blocksize of 1 blockpublic abstract void lastCallBack(boolean success,
int currentBlock,
int blocksize)
success - True if the transfer is successfulcurrentBlock - blocksize - public void run()
Copyright © 2009–2020 Waarp. All rights reserved.