Class HandleDownloadTransfer
- java.lang.Object
-
- unlimited.fc.client.transferhandler.HandleDownloadTransfer
-
public class HandleDownloadTransfer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HandleDownloadTransfer(FileCatalystReceiveHandler handler, java.nio.file.Path localFile, java.lang.String remoteFile, long localSize, long remoteSize, boolean isADeltaTransfer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckForCancelled()voidcheckNonFCServerConnectionWithCallbackHandler()voidhandleIncremental()Handles the incremental logic that will be used throughout the transfer.voidincrementalSetupIfNeeded()voidlogStartOfTransfer()voidrunDownloadTransfer()voidrunPostTransferModifications()voidrunPostTransferVerifications()voidsetBaseTransferValues()voidsetBlockValues()voidsetLocalFilenameIfNeeded()voidsetOffsets()voidsetSizesAccountingForOffsets()voidsetTransferringStatus()voidsetTransferTimes()booleanshouldPerformIncremental()voidupdateTransferMetrics()
-
-
-
Constructor Detail
-
HandleDownloadTransfer
public HandleDownloadTransfer(FileCatalystReceiveHandler handler, java.nio.file.Path localFile, java.lang.String remoteFile, long localSize, long remoteSize, boolean isADeltaTransfer)
-
-
Method Detail
-
setLocalFilenameIfNeeded
public void setLocalFilenameIfNeeded() throws java.io.IOException- Throws:
java.io.IOException
-
runPostTransferModifications
public void runPostTransferModifications() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
runPostTransferVerifications
public void runPostTransferVerifications() throws unlimited.core.util.common.exception.FCException, java.io.IOException, unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionunlimited.core.util.common.controlFlow.Return
-
runDownloadTransfer
public void runDownloadTransfer() throws unlimited.core.util.common.controlFlow.Return, unlimited.core.util.common.exception.FCException- Throws:
unlimited.core.util.common.controlFlow.Returnunlimited.core.util.common.exception.FCException
-
updateTransferMetrics
public void updateTransferMetrics()
-
setBlockValues
public void setBlockValues()
-
setTransferTimes
public void setTransferTimes()
-
checkForCancelled
public void checkForCancelled() throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
logStartOfTransfer
public void logStartOfTransfer()
-
setTransferringStatus
public void setTransferringStatus()
-
setSizesAccountingForOffsets
public void setSizesAccountingForOffsets()
-
setOffsets
public void setOffsets()
-
checkNonFCServerConnectionWithCallbackHandler
public void checkNonFCServerConnectionWithCallbackHandler()
-
setBaseTransferValues
public void setBaseTransferValues()
-
incrementalSetupIfNeeded
public void incrementalSetupIfNeeded() throws unlimited.core.util.common.exception.FCException, java.io.IOException, unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionunlimited.core.util.common.controlFlow.Return
-
handleIncremental
public void handleIncremental() throws unlimited.core.util.common.exception.FCException, java.io.IOException, unlimited.core.util.common.controlFlow.ReturnHandles the incremental logic that will be used throughout the transfer.- Throws:
unlimited.core.util.common.controlFlow.Return- Thrown if any of the incremental logic modifies the control flow of the transferunlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
shouldPerformIncremental
public boolean shouldPerformIncremental()
-
-