Class TransferUpload
- java.lang.Object
-
- unlimited.fc.client.transferhandler.TransferUpload
-
public class TransferUpload extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TransferUpload(FileCatalystTransmitHandler uploadhandler, PerformTransmitSetup parent, boolean isDelta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustBlockSize()protected voidadjustContinuedRetryValues()protected voidadjustNumOfEncoders()protected voidadjustUnitSize()protected voidcheckIfRetryIsNeeded()protected voidcheckIsAppendingForNonProgressive()protected voidcheckSucess()protected voiddoActualTransferForRealsies()protected voidhandleClassCastException(java.lang.ClassCastException cce)protected voidhandleFCException(unlimited.core.util.common.exception.FCException ex6)protected voidhandleGenericException(java.lang.Throwable ex6)protected voidhandleKeepPermissions()protected voidhandleModTime()protected voidhandleTimeoutException(unlimited.core.util.common.exception.FCTransmitTimeoutException ex6)protected voidhandleTransferCancelled()protected voidhandleTransferError()protected booleanisContinuedRetry()protected booleanisModTime()protected booleanisTransferSuceeding()protected booleanisVerifying()protected booleanisWindows()protected booleanneedsToHandleProgressiveWithTimeouts()protected booleanneedsToSwitchToProgressiveRetry()protected booleanneedsToTransferData()protected booleanretrying()protected voidrunTransferRetryLoop()protected booleansuccessfulTransfer()protected booleantransferCancelled()protected booleantransferError()protected voidtransferFile()protected voidupdateAllDataSizes()protected voidupdateAppend()protected voidupdateDataSize()protected voidupdateFileSizeStatistics()protected voidupdateFileSizeStatisticsForProgressive()protected voidupdateForPRogressiveSwitch()protected voidupdateHTTPTransferStatus()protected voidupdateRemoteSize()protected voidupdateRetryStats()protected voidupdateTransferMetrics()protected voidwaitForDeltaThreadIfNeeded()protected voidwaitForProgressiveTimeoutIfNeeded()protected voidwaitForZipThreadIfNeeded()
-
-
-
Constructor Detail
-
TransferUpload
public TransferUpload(FileCatalystTransmitHandler uploadhandler, PerformTransmitSetup parent, boolean isDelta)
-
-
Method Detail
-
transferFile
protected final void transferFile() 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
-
handleKeepPermissions
protected final void handleKeepPermissions() throws java.io.IOException- Throws:
java.io.IOException
-
isWindows
protected final boolean isWindows()
-
handleModTime
protected final void handleModTime() throws java.io.IOException- Throws:
java.io.IOException
-
isModTime
protected final boolean isModTime()
-
isTransferSuceeding
protected final boolean isTransferSuceeding()
-
isVerifying
protected final boolean isVerifying()
-
checkSucess
protected final void checkSucess() throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
handleTransferError
protected final void handleTransferError()
-
handleTransferCancelled
protected final void handleTransferCancelled()
-
transferError
protected final boolean transferError()
-
transferCancelled
protected final boolean transferCancelled()
-
successfulTransfer
protected final boolean successfulTransfer()
-
updateTransferMetrics
protected final void updateTransferMetrics()
-
isContinuedRetry
protected final boolean isContinuedRetry()
-
updateRetryStats
protected final void updateRetryStats()
-
runTransferRetryLoop
protected final void runTransferRetryLoop() throws java.io.IOException, unlimited.core.util.common.controlFlow.Break, unlimited.core.util.common.controlFlow.Return- Throws:
java.io.IOExceptionunlimited.core.util.common.controlFlow.Breakunlimited.core.util.common.controlFlow.Return
-
handleGenericException
protected final void handleGenericException(java.lang.Throwable ex6) throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
handleClassCastException
protected final void handleClassCastException(java.lang.ClassCastException cce) throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
handleFCException
protected final void handleFCException(unlimited.core.util.common.exception.FCException ex6) throws unlimited.core.util.common.exception.FCException.Fatal, unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.exception.FCException.Fatalunlimited.core.util.common.controlFlow.Return
-
handleTimeoutException
protected final void handleTimeoutException(unlimited.core.util.common.exception.FCTransmitTimeoutException ex6) throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
checkIfRetryIsNeeded
protected final void checkIfRetryIsNeeded()
-
waitForProgressiveTimeoutIfNeeded
protected final void waitForProgressiveTimeoutIfNeeded() throws java.io.IOException- Throws:
java.io.IOException
-
needsToHandleProgressiveWithTimeouts
protected final boolean needsToHandleProgressiveWithTimeouts() throws java.io.IOException- Throws:
java.io.IOException
-
waitForDeltaThreadIfNeeded
protected final void waitForDeltaThreadIfNeeded()
-
waitForZipThreadIfNeeded
protected final void waitForZipThreadIfNeeded()
-
updateHTTPTransferStatus
protected final void updateHTTPTransferStatus() throws unlimited.core.util.common.exception.FCException, java.io.IOException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOException
-
doActualTransferForRealsies
protected final void doActualTransferForRealsies() throws java.io.IOException, unlimited.core.util.common.exception.FCException- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCException
-
adjustContinuedRetryValues
protected final void adjustContinuedRetryValues() throws unlimited.core.util.common.controlFlow.Return, unlimited.core.util.common.controlFlow.Break- Throws:
unlimited.core.util.common.controlFlow.Returnunlimited.core.util.common.controlFlow.Break
-
adjustUnitSize
protected final void adjustUnitSize()
-
adjustBlockSize
protected final void adjustBlockSize()
-
adjustNumOfEncoders
protected final void adjustNumOfEncoders()
-
updateAllDataSizes
protected final void updateAllDataSizes()
-
updateFileSizeStatisticsForProgressive
protected final void updateFileSizeStatisticsForProgressive()
-
updateFileSizeStatistics
protected final void updateFileSizeStatistics()
-
updateForPRogressiveSwitch
protected final void updateForPRogressiveSwitch()
-
needsToSwitchToProgressiveRetry
protected final boolean needsToSwitchToProgressiveRetry()
-
updateDataSize
protected final void updateDataSize()
-
updateAppend
protected final void updateAppend() throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
checkIsAppendingForNonProgressive
protected final void checkIsAppendingForNonProgressive() throws unlimited.core.util.common.controlFlow.Return- Throws:
unlimited.core.util.common.controlFlow.Return
-
needsToTransferData
protected final boolean needsToTransferData()
-
updateRemoteSize
protected final void updateRemoteSize() throws unlimited.core.util.common.controlFlow.Break- Throws:
unlimited.core.util.common.controlFlow.Break
-
retrying
protected final boolean retrying()
-
-