Interface ScpRemote2RemoteTransferListener


public interface ScpRemote2RemoteTransferListener
Author:
Apache MINA SSHD Project
  • Method Details

    • startDirectFileTransfer

      void startDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) throws 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:
      IOException - If failed to handle the callback
    • endDirectFileTransfer

      void endDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown) throws 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:
      IOException - If failed to handle the callback
    • startDirectDirectoryTransfer

      void startDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) throws 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:
      IOException - If failed to handle the callback
    • endDirectDirectoryTransfer

      void endDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown) throws 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:
      IOException - If failed to handle the callback