public class FileCatalystReceiveHandler extends MultiTransferHandler<java.lang.String>
countTransferred, filter, isParentPooled, lastBytesSoFar, statusMessage, waitForDiscWriteProgressive, willTransferBIDIRECTIONAL, CANCELLED, CHECKING, COMPRESSING, CREATINGDMG, currentFileToIDs, DECOMPRESSING, DELTA, DOINGCHMOD, DOINGMDTM, DONEFILE, DOWNLOAD, ERROR, errorMessageStack, FINISHED, IDLE, INITIALIZING, MONITORING, MOVINGFILES, NOTATTEMPTED, PROCESSING, REBUILD, RECONNECTING, SIGNATURE, SUCCESS, TRANSFERRING, UPLOAD, VERIFYING| Constructor and Description |
|---|
FileCatalystReceiveHandler(FCClientEngine fcClient,
java.util.List<java.lang.String> files,
java.nio.file.Path localPath,
int blockSize,
int unitSize,
int numDecoders,
int bandwidth,
boolean verify,
boolean keepModificationDateTime,
boolean keepPermissions) |
FileCatalystReceiveHandler(FCClientEngine fcClient,
java.util.List<java.lang.String> files,
java.nio.file.Path localPath,
int blockSize,
int unitSize,
int numDecoders,
int bandwidth,
boolean verify,
boolean keepModificationDateTime,
boolean keepPermissions,
boolean recurse,
CachedFileIndexInterface fileTransferIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
createZeroByteFileLocally(java.nio.file.Path localFile,
java.lang.String remoteFile) |
protected boolean |
doesDirectoryContainContents(java.lang.String t) |
void |
doRemoteSync(java.nio.file.Path file,
java.lang.String rfile,
long origSize,
boolean compress,
int level,
int strategy,
java.lang.String uniqueID) |
protected java.nio.file.Path |
getOriginalFile(java.nio.file.Path tempFile) |
java.nio.file.Path |
getPathForRecursiveTransfer(java.lang.String remoteFile,
java.nio.file.Path localPath) |
protected java.nio.file.Path |
getTempFile(java.nio.file.Path localFile) |
protected boolean |
isExceptionFatal(java.lang.Exception ex) |
void |
runHandler() |
void |
setFilePermissions(java.nio.file.Path localFile,
java.lang.String remoteFile) |
void |
setFilesList(java.util.List<java.lang.String> files) |
void |
setRenameVector(java.util.List<java.nio.file.Path> renameList) |
protected long |
waitForSourceFileToBeStaticIfRequired(java.lang.String file,
long soureFileSize) |
addObserver, addTransferredLocalFile, addTransferredRemoteFile, calculateAverageKbpsRate, calculateEffectiveRateOfZipTransfer, checkForServerTimeout, checkRegex, close, deleteLocalFiles, deleteRemoteFileNames, downgradeFileTransferMode, enableVerifySizeIfNeeded, fileRegionMatch, filesMatch, filesMatch, filesMatch, filesMatchBackground, filesMatchPartial, filesMatchPartial, filterEmptyDirectoriesIfNeeded, getActiveIndex, getAllFileAndSize, getAllFilePaths, getAverageSetupTeardown, getAvgMD5TimePerKB, getBytesSoFarAllFiles, getBytesSoFarAllFilesFull, getBytesSoFarCurrentFile, getCallbackHandler, getCancelHandler, getClient, getClientAPI, getCompFileFilter, getCompressionLevel, getCompressionMethod, getCompressionStrategy, getCountTransferred, getCurrentEffectiveRate, getCurrentFilename, getCurrentFileTime, getCurrentFileTransferTime, getCurrentPercent, getCurrentRate, getDeltaFilename, getDirection, getEffectiveRateAverage, getEffectiveRateAverageInKBperSecond, getFilesSoFar, getFilesTransferredLocal, getFilesTransferredRemote, getFilter, getFormattedCurrentFileTransferTime, getFormattedOverallTransferTime, getFormattedTransferTime, getIncTransferOption, getLastTry, getLocalFilename, getLocalFileTransferIndex, getLocalWorkingDirectory, getLogFiles, getMaximumDeltaSize, getMaxTries, getMD5Key, getMd5RateLimit, getMeanEffectiveRate, getMinimumDeltaSize, getOverallRate, getOverallRateInKBperSecond, getOverallTimeRemaining, getOverallTimeRemainingMillis, getOverallTransferTime, getPacketLossPercent, getPercent, getPostURL, getPreservePathStructureFileName, getProgressiveTimeout, getProgressiveTimeoutFilter, getRateAverage, getRateAverageInKBperSecond, getRateInKBperSecond, getRegex, getRemoteFilename, getRemoteWorkingDirectory, getRetransferHeaderSize, getRoundTripTime, getSignatureFilename, getSizeAllFiles, getSizeCurrentFile, getSizeTransferredAlreadyAllFiles, getSizeTransferredAlreadyCurrentFile, getStatus, getStatusCode, getStatusMessage, getTimeRemaining, getTimeRemainingMillis, getTmpMode, getTotalFiles, getTransferMetrics, getTransferMode, getTransferStartTime, getTransferStatus, getTransferTime, getTransferWarningMessage, getUniqueID, getVerifyMode, getWaitRetry, getZipFileSizeLimit, handleError, handleProgressiveDelayBeforeAppend, incrementSofarAllFiles, incrementTotalFiles, initializeProgressiveDelay, initializeTransferHeadersEachAppend, isAddSkippedFilesToTransferVector, isAutoResume, isAutoUnzip, isAutoZip, isCancelled, isCancelledDueToError, isDeleteAfterTransfer, isDeletePartial, isDowngradeModeOnReConnect, isFatal, isIncremental, isIncrementalSizeCheckOnly, isOptimizeBlocksize, isPreservePathStructure, isProgressiveTransfers, isRenameExtensions, isSecure, isStorTmp, isTransferCancelled, isTransferComplete, isTransferEmptyDirectories, isTransferError, isTransferUsingDeltas, isTransferWarning, isUseCompression, isValidFileCache, killAll, logFinalTransferStats, logMessage, main, notifyObservers, notifyObservers, passesProgressiveTimeoutFilter, permissionsAllowForDeltasTransfer, removeIndex, renameExtension, run, setAddSkippedFilesToTransferVector, setAppletTransferCache, setAutoResume, setAutoUnzip, setAutoZip, setAvgMD5TimePerKB, setAvgRTT, setBandwidth, setCallbackHandler, setCancelled, setCancelled, setClientAPI, setCompFileFilter, setCompressionLevel, setCompressionMethod, setCompressionStrategy, setDeleteAfterTransfer, setDeletePartial, setDowngradeModeOnReConnect, setFatal, setFilesSoFar, setFilter, setIncremental, setIncrementalSizeCheckOnly, setIncTransferOption, setIsError, setLastTry, setLocalFileTransferIndex, setLocalMD5, setLocalWorkingDirectory, setLocalWorkingDirectory, setLogFiles, setMaxTries, setMd5RateLimit, setOptimizeBlocksize, setParentPooled, setPostURL, setPreservePathStructure, setProgressiveTimeout, setProgressiveTimeoutFilter, setProgressiveTransfers, setRegex, setRemoteMD5, setRemoteWorkingDirectory, setRenameExtensions, setRetransferHeaderSize, setSizeCurrentFile, setStatusCode, setStorTmp, setTmpMode, setTransferEmptyDirectories, setTransferMode, setUniqueID, setUseCompression, setVerifyMode, setWaitRetry, setZipFileSizeLimit, shouldCompressFile, shouldPerformIncremental, updateObservers, updateSofarAllFiles, updateStatusTransferring, validateVerifyMode, verifierRunning, verifyFileContents, verifySize, waitForDiscWriteProgressives, willTransferaddErrorMessage, getActualRate, getAllErrorMessages, getCurrentFileToIDs, getErrorCodes, getErrorMessage, getErrorSet, getRate, getSnapShot, getStatusAsParsableString, setFormatterclearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddErrorMessagepublic FileCatalystReceiveHandler(FCClientEngine fcClient, java.util.List<java.lang.String> files, java.nio.file.Path localPath, int blockSize, int unitSize, int numDecoders, int bandwidth, boolean verify, boolean keepModificationDateTime, boolean keepPermissions)
public FileCatalystReceiveHandler(FCClientEngine fcClient, java.util.List<java.lang.String> files, java.nio.file.Path localPath, int blockSize, int unitSize, int numDecoders, int bandwidth, boolean verify, boolean keepModificationDateTime, boolean keepPermissions, boolean recurse, CachedFileIndexInterface fileTransferIndex)
public void setFilesList(java.util.List<java.lang.String> files)
public void runHandler()
runHandler in class MultiTransferHandler<java.lang.String>public void setFilePermissions(java.nio.file.Path localFile,
java.lang.String remoteFile)
throws FCException,
java.io.IOException
FCExceptionjava.io.IOExceptionpublic java.nio.file.Path getPathForRecursiveTransfer(java.lang.String remoteFile,
java.nio.file.Path localPath)
public void doRemoteSync(java.nio.file.Path file,
java.lang.String rfile,
long origSize,
boolean compress,
int level,
int strategy,
java.lang.String uniqueID)
throws FCException,
java.io.IOException,
java.lang.Exception
file - rfile - FCExceptionjava.io.IOExceptionjava.lang.Exceptionprotected java.nio.file.Path getTempFile(java.nio.file.Path localFile)
protected java.nio.file.Path getOriginalFile(java.nio.file.Path tempFile)
protected long waitForSourceFileToBeStaticIfRequired(java.lang.String file,
long soureFileSize)
throws java.io.IOException
java.io.IOExceptionprotected boolean isExceptionFatal(java.lang.Exception ex)
protected boolean doesDirectoryContainContents(java.lang.String t)
doesDirectoryContainContents in class MultiTransferHandler<java.lang.String>public void createZeroByteFileLocally(java.nio.file.Path localFile,
java.lang.String remoteFile)
throws java.io.IOException,
FCException
java.io.IOExceptionFCExceptionpublic void setRenameVector(java.util.List<java.nio.file.Path> renameList)