Class FileStatistics

java.lang.Object
com.enterprisedt.net.ftp.FileStatistics

public class FileStatistics extends Object
Statistics on transfers and deletes. This will be continually updated by the clients.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • FileStatistics

      public FileStatistics()
      Default constructor
  • Method Details

    • addClient

      public void addClient(FTPClientInterface client)
      Add a client to be used in calculating statistics
      Parameters:
      client - extra client
    • removeClient

      public void removeClient(FTPClientInterface client)
    • getDownloadCount

      public int getDownloadCount()
      Get the number of files downloaded since the count was reset
      Returns:
      download file count
    • getUploadCount

      public int getUploadCount()
      Get the number of files uploaded since the count was reset
      Returns:
      upload file count
    • getDeleteCount

      public int getDeleteCount()
      Get the number of files deleted since the count was reset
      Returns:
      deleted file count
    • clear

      public void clear()
      Reset the statistics back to zero