Class FileCatalystTransmitHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Runnable, unlimited.core.transfers.UDPTransferMetrics, unlimited.core.util.common.CancelHandler, PostURLTransfer.TransferHolder, TransferState, FilesMatchHandler

    public class FileCatalystTransmitHandler
    extends MultiTransferHandler<java.nio.file.Path>

    Title:

    Description:

    Copyright: Copyright (c) 2006

    Company: Unlimi-Tech Software Inc.

    • Constructor Detail

      • FileCatalystTransmitHandler

        public FileCatalystTransmitHandler​(FCClientEngine fcClient,
                                           java.util.List<java.nio.file.Path> files,
                                           int blockSize,
                                           int unitSize,
                                           int numCodecs,
                                           int bandwidth,
                                           boolean verify,
                                           boolean keepModificationDateTime,
                                           boolean keepPermissions,
                                           boolean preservePathStructure)
      • FileCatalystTransmitHandler

        public FileCatalystTransmitHandler​(FCClientEngine fcClient,
                                           java.util.List<java.nio.file.Path> files,
                                           java.util.List<java.lang.String> renameVector,
                                           int blockSize,
                                           int unitSize,
                                           int numCodecs,
                                           int bandwidth,
                                           boolean verify,
                                           boolean keepModificationDateTime,
                                           boolean keepPermissions,
                                           boolean preservePathStructure)
      • FileCatalystTransmitHandler

        public FileCatalystTransmitHandler​(FCClientEngine fcClient,
                                           java.util.List<java.nio.file.Path> files,
                                           int blockSize,
                                           int unitSize,
                                           int numCodecs,
                                           int bandwidth,
                                           boolean verify,
                                           boolean keepModificationDateTime,
                                           boolean keepPermissions,
                                           boolean preservePathStructure,
                                           boolean recurse,
                                           CachedFileIndexInterface fileTransferIndex,
                                           java.nio.file.Path basePath)
    • Method Detail

      • addToQueue

        public void addToQueue​(java.nio.file.Path f)
      • getFiles

        public java.util.List<java.nio.file.Path> getFiles()
      • refreshInfo

        public void refreshInfo()
      • waitForSourceFileToBeStaticIfRequired

        protected long waitForSourceFileToBeStaticIfRequired​(java.nio.file.Path file,
                                                             long soureFileSize)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • isMoveToSent

        public boolean isMoveToSent()
      • setMoveToSent

        public void setMoveToSent​(boolean moveToSent,
                                  java.lang.String sentPath)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • doBenchMark

        public void doBenchMark()
        Parameters:
        startTime -
      • isAutoDMG

        public boolean isAutoDMG()
      • getDmgFileName

        public java.lang.String getDmgFileName()
      • getZipFilename

        public java.lang.String getZipFilename()
      • getCurrentFileObject

        public java.nio.file.Path getCurrentFileObject()
      • getMaxAgeSentItemsDays

        public int getMaxAgeSentItemsDays()
      • setAutoDMG

        public void setAutoDMG​(boolean autoDMG)
      • setDmgFileName

        public void setDmgFileName​(java.lang.String dmgFileName)
      • setZipFilename

        public void setZipFilename​(java.lang.String zipFilename)
      • setMaxAgeSentItemsDays

        public void setMaxAgeSentItemsDays​(int maxAgeSentItemsDays)
      • getSignatureTransferMode

        public int getSignatureTransferMode()
        Returns:
        the signatureTransferMode
      • setSignatureTransferMode

        public void setSignatureTransferMode​(int signatureTransferMode)
        Parameters:
        signatureTransferMode - the signatureTransferMode to set
      • renameTempFile

        protected java.lang.String renameTempFile​(java.lang.String originalName,
                                                  java.lang.String destFile)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • flagSymlinkFolderForDeletion

        public void flagSymlinkFolderForDeletion​(java.nio.file.Path file)
      • setRenameVector

        public void setRenameVector​(java.util.List<java.lang.String> renameVector)