Interface EventListener

All Known Implementing Classes:
EventAdapter, EventCollector

public interface EventListener
Listens for interesting file transfer events.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Method Details

    • commandSent

      void commandSent(String connId, String cmd)
      Log an FTP command being sent to the server. Not used for SFTP.
      Parameters:
      connId - Identifier of FTP connection
      cmd - command string
    • replyReceived

      void replyReceived(String connId, String reply)
      Log an FTP reply being sent back to the client. Not used for SFTP.
      Parameters:
      connId - Identifier of FTP connection
      reply - reply string
    • bytesTransferred

      void bytesTransferred(String connId, String remoteFilename, long count)
      Report the number of bytes transferred so far. This may not be entirely accurate for transferring text files in ASCII mode, as new line representations can be represented differently on different platforms.
      Parameters:
      connId - Identifier of FTP connection
      remoteFilename - Name of remote file
      count - count of bytes transferred
    • downloadStarted

      void downloadStarted(String connId, String remoteFilename)
      Notifies that a download has started
      Parameters:
      connId - Identifier of FTP connection
      remoteFilename - remote file name
    • downloadCompleted

      void downloadCompleted(String connId, String remoteFilename)
      Notifies that a download has completed
      Parameters:
      connId - Identifier of FTP connection
      remoteFilename - remote file name
    • uploadStarted

      void uploadStarted(String connId, String remoteFilename)
      Notifies that an upload has started
      Parameters:
      connId - Identifier of FTP connection
      remoteFilename - remote file name
    • uploadCompleted

      void uploadCompleted(String connId, String remoteFilename)
      Notifies that an upload has completed
      Parameters:
      connId - Identifier of FTP connection
      remoteFilename - remote file name