Class ReceiveHandlerRunner
- java.lang.Object
-
- unlimited.fc.client.transferhandler.ReceiveHandlerRunner
-
public class ReceiveHandlerRunner extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReceiveHandlerRunner(FileCatalystReceiveHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleErrorRunningTransfer(java.lang.Exception ex)voidhandleMultipleZips()voidhandleTransferErrors(java.lang.Exception e)voidhandleZipInitializationError(java.lang.Exception e)voidinitializeStartOfHandlerValues()voidinitializeZip()voidrunAllTransfers()voidrunFileTransfer(int fileIndex)voidrunReceiver()voidrunRetryLoop()voidrunTransferForFile(int fileIndex)voidsetCancelledStatusForFile(int fileIndex)voidsetErrorStatusForFile(int fileIndex)voidsetInitializingStatus()voidsetSuccessStatusWithVerification(int fileIndex)voidsetTransferStatus(int fileIndex)voidshutdownFileVerifier()voidstartFileVerifier()voidstartStatusUpdateThread()voidunzipReceivedFiles()voidupdateCancelledFlag()
-
-
-
Constructor Detail
-
ReceiveHandlerRunner
public ReceiveHandlerRunner(FileCatalystReceiveHandler handler)
-
-
Method Detail
-
runReceiver
public void runReceiver()
-
shutdownFileVerifier
public void shutdownFileVerifier()
-
unzipReceivedFiles
public void unzipReceivedFiles()
-
handleTransferErrors
public void handleTransferErrors(java.lang.Exception e)
-
runAllTransfers
public void runAllTransfers() throws unlimited.core.util.common.exception.FCException, java.io.IOException, java.lang.InterruptedException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionjava.lang.InterruptedException
-
runTransferForFile
public void runTransferForFile(int fileIndex) throws unlimited.core.util.common.exception.FCException, java.io.IOException, java.lang.InterruptedException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionjava.lang.InterruptedException
-
handleMultipleZips
public void handleMultipleZips() throws unlimited.core.util.common.exception.FCException, java.io.IOException, java.lang.InterruptedException- Throws:
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionjava.lang.InterruptedException
-
setTransferStatus
public void setTransferStatus(int fileIndex)
-
setSuccessStatusWithVerification
public void setSuccessStatusWithVerification(int fileIndex)
-
setErrorStatusForFile
public void setErrorStatusForFile(int fileIndex)
-
setCancelledStatusForFile
public void setCancelledStatusForFile(int fileIndex)
-
handleErrorRunningTransfer
public boolean handleErrorRunningTransfer(java.lang.Exception ex)
-
runFileTransfer
public void runFileTransfer(int fileIndex) throws java.lang.Exception- Throws:
java.lang.Exception
-
updateCancelledFlag
public void updateCancelledFlag()
-
startStatusUpdateThread
public void startStatusUpdateThread()
-
runRetryLoop
public void runRetryLoop()
-
handleZipInitializationError
public void handleZipInitializationError(java.lang.Exception e)
-
initializeZip
public void initializeZip() throws java.io.IOException, unlimited.core.util.common.exception.FCException, java.lang.InterruptedException, java.lang.CloneNotSupportedException- Throws:
java.io.IOExceptionunlimited.core.util.common.exception.FCExceptionjava.lang.InterruptedExceptionjava.lang.CloneNotSupportedException
-
setInitializingStatus
public void setInitializingStatus()
-
startFileVerifier
public void startFileVerifier()
-
initializeStartOfHandlerValues
public void initializeStartOfHandlerValues()
-
-