Class FileCatalystReceiveHandler

    • Constructor Detail

      • FileCatalystReceiveHandler

        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)
      • FileCatalystReceiveHandler

        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)
    • Method Detail

      • setFilesList

        public void setFilesList​(java.util.List<java.lang.String> files)
      • setFilePermissions

        public void setFilePermissions​(java.nio.file.Path localFile,
                                       java.lang.String remoteFile)
                                throws unlimited.core.util.common.exception.FCException,
                                       java.io.IOException
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • getPathForRecursiveTransfer

        public java.nio.file.Path getPathForRecursiveTransfer​(java.lang.String remoteFile,
                                                              java.nio.file.Path localPath)
      • doRemoteSync

        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 unlimited.core.util.common.exception.FCException,
                                 java.io.IOException,
                                 java.lang.Exception
        Parameters:
        file -
        rfile -
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
        java.lang.Exception
      • getTempFile

        protected java.nio.file.Path getTempFile​(java.nio.file.Path localFile)
      • getOriginalFile

        protected java.nio.file.Path getOriginalFile​(java.nio.file.Path tempFile)
      • waitForSourceFileToBeStaticIfRequired

        protected long waitForSourceFileToBeStaticIfRequired​(java.lang.String file,
                                                             long soureFileSize)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • isExceptionFatal

        protected boolean isExceptionFatal​(java.lang.Exception ex)
      • createZeroByteFileLocally

        public void createZeroByteFileLocally​(java.nio.file.Path localFile,
                                              java.lang.String remoteFile)
                                       throws java.io.IOException,
                                              unlimited.core.util.common.exception.FCException
        Throws:
        java.io.IOException
        unlimited.core.util.common.exception.FCException
      • setRenameVector

        public void setRenameVector​(java.util.List<java.nio.file.Path> renameList)