Interface ScpRemote2RemoteTransferListener


  • public interface ScpRemote2RemoteTransferListener
    • Method Detail

      • startDirectFileTransfer

        void startDirectFileTransfer​(ClientSession srcSession,
                                     java.lang.String source,
                                     ClientSession dstSession,
                                     java.lang.String destination,
                                     ScpTimestampCommandDetails timestamp,
                                     ScpReceiveFileCommandDetails details)
                              throws java.io.IOException
        Indicates start of direct file transfer
        Parameters:
        srcSession - The source ClientSession
        source - The source path
        dstSession - The destination ClientSession
        destination - The destination path
        timestamp - The timestamp of the file - may be null
        details - The details of the attempted file transfer
        Throws:
        java.io.IOException - If failed to handle the callback
      • endDirectFileTransfer

        void endDirectFileTransfer​(ClientSession srcSession,
                                   java.lang.String source,
                                   ClientSession dstSession,
                                   java.lang.String destination,
                                   ScpTimestampCommandDetails timestamp,
                                   ScpReceiveFileCommandDetails details,
                                   long xferSize,
                                   java.lang.Throwable thrown)
                            throws java.io.IOException
        Indicates end of direct file transfer
        Parameters:
        srcSession - The source ClientSession
        source - The source path
        dstSession - The destination ClientSession
        destination - The destination path
        timestamp - The timestamp of the file - may be null
        details - The details of the attempted file transfer
        xferSize - Number of successfully transfered bytes - zero if thrown not null
        thrown - Error thrown during transfer attempt - null if successful
        Throws:
        java.io.IOException - If failed to handle the callback
      • startDirectDirectoryTransfer

        void startDirectDirectoryTransfer​(ClientSession srcSession,
                                          java.lang.String source,
                                          ClientSession dstSession,
                                          java.lang.String destination,
                                          ScpTimestampCommandDetails timestamp,
                                          ScpReceiveDirCommandDetails details)
                                   throws java.io.IOException
        Indicates start of direct directory transfer
        Parameters:
        srcSession - The source ClientSession
        source - The source path
        dstSession - The destination ClientSession
        destination - The destination path
        timestamp - The timestamp of the directory - may be null
        details - The details of the attempted directory transfer
        Throws:
        java.io.IOException - If failed to handle the callback
      • endDirectDirectoryTransfer

        void endDirectDirectoryTransfer​(ClientSession srcSession,
                                        java.lang.String source,
                                        ClientSession dstSession,
                                        java.lang.String destination,
                                        ScpTimestampCommandDetails timestamp,
                                        ScpReceiveDirCommandDetails details,
                                        java.lang.Throwable thrown)
                                 throws java.io.IOException
        Indicates end of direct file transfer
        Parameters:
        srcSession - The source ClientSession
        source - The source path
        dstSession - The destination ClientSession
        destination - The destination path
        timestamp - The timestamp of the directory - may be null
        details - The details of the attempted directory transfer
        thrown - Error thrown during transfer attempt - null if successful
        Throws:
        java.io.IOException - If failed to handle the callback