public class ReceiveHandlerRunner
extends java.lang.Object
| Constructor and Description |
|---|
ReceiveHandlerRunner(FileCatalystReceiveHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleErrorRunningTransfer(java.lang.Exception ex) |
void |
handleMultipleZips() |
void |
handleTransferErrors(java.lang.Exception e) |
void |
handleZipInitializationError(java.lang.Exception e) |
void |
initializeStartOfHandlerValues() |
void |
initializeZip() |
void |
runAllTransfers() |
void |
runFileTransfer(int fileIndex) |
void |
runReceiver() |
void |
runRetryLoop() |
void |
runTransferForFile(int fileIndex) |
void |
setCancelledStatusForFile(int fileIndex) |
void |
setErrorStatusForFile(int fileIndex) |
void |
setInitializingStatus() |
void |
setSuccessStatusWithVerification(int fileIndex) |
void |
setTransferStatus(int fileIndex) |
void |
shutdownFileVerifier() |
void |
startFileVerifier() |
void |
startStatusUpdateThread() |
void |
unzipReceivedFiles() |
void |
updateCancelledFlag() |
public ReceiveHandlerRunner(FileCatalystReceiveHandler handler)
public void runReceiver()
public void shutdownFileVerifier()
public void unzipReceivedFiles()
public void handleTransferErrors(java.lang.Exception e)
public void runAllTransfers()
throws FCException,
java.io.IOException,
java.lang.InterruptedException
FCExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void runTransferForFile(int fileIndex)
throws FCException,
java.io.IOException,
java.lang.InterruptedException
FCExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void handleMultipleZips()
throws FCException,
java.io.IOException,
java.lang.InterruptedException
FCExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void setTransferStatus(int fileIndex)
public void setSuccessStatusWithVerification(int fileIndex)
public void setErrorStatusForFile(int fileIndex)
public void setCancelledStatusForFile(int fileIndex)
public boolean handleErrorRunningTransfer(java.lang.Exception ex)
public void runFileTransfer(int fileIndex)
throws java.lang.Exception
java.lang.Exceptionpublic void updateCancelledFlag()
public void startStatusUpdateThread()
public void runRetryLoop()
public void handleZipInitializationError(java.lang.Exception e)
public void initializeZip()
throws java.io.IOException,
FCException,
java.lang.InterruptedException,
java.lang.CloneNotSupportedException
java.io.IOExceptionFCExceptionjava.lang.InterruptedExceptionjava.lang.CloneNotSupportedExceptionpublic void setInitializingStatus()
public void startFileVerifier()
public void initializeStartOfHandlerValues()