public class HandleDownloadTransfer
extends java.lang.Object
| Constructor and Description |
|---|
HandleDownloadTransfer(FileCatalystReceiveHandler handler,
java.nio.file.Path localFile,
java.lang.String remoteFile,
long localSize,
long remoteSize,
boolean isADeltaTransfer) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForCancelled() |
void |
checkNonFCServerConnectionWithCallbackHandler() |
void |
handleIncremental()
Handles the incremental logic that will be used throughout the transfer.
|
void |
incrementalSetupIfNeeded() |
void |
logStartOfTransfer() |
void |
runDownloadTransfer() |
void |
runPostTransferModifications() |
void |
runPostTransferVerifications() |
void |
setBaseTransferValues() |
void |
setBlockValues() |
void |
setLocalFilenameIfNeeded() |
void |
setOffsets() |
void |
setSizesAccountingForOffsets() |
void |
setTransferringStatus() |
void |
setTransferTimes() |
boolean |
shouldPerformIncremental() |
void |
updateTransferMetrics() |
public HandleDownloadTransfer(FileCatalystReceiveHandler handler, java.nio.file.Path localFile, java.lang.String remoteFile, long localSize, long remoteSize, boolean isADeltaTransfer)
public void setLocalFilenameIfNeeded()
throws java.io.IOException
java.io.IOExceptionpublic void runPostTransferModifications()
throws FCException,
java.io.IOException
FCExceptionjava.io.IOExceptionpublic void runPostTransferVerifications()
throws FCException,
java.io.IOException,
Return
FCExceptionjava.io.IOExceptionReturnpublic void runDownloadTransfer()
throws Return,
FCException
ReturnFCExceptionpublic void updateTransferMetrics()
public void setBlockValues()
public void setTransferTimes()
public void checkForCancelled()
throws Return
Returnpublic void logStartOfTransfer()
public void setTransferringStatus()
public void setSizesAccountingForOffsets()
public void setOffsets()
public void checkNonFCServerConnectionWithCallbackHandler()
public void setBaseTransferValues()
public void incrementalSetupIfNeeded()
throws FCException,
java.io.IOException,
Return
FCExceptionjava.io.IOExceptionReturnpublic void handleIncremental()
throws FCException,
java.io.IOException,
Return
Return - Thrown if any of the incremental logic modifies the control flow of the transferFCExceptionjava.io.IOExceptionpublic boolean shouldPerformIncremental()