Package com.enterprisedt.net.ftp
Class FileStatistics
java.lang.Object
com.enterprisedt.net.ftp.FileStatistics
Statistics on transfers and deletes. This will be continually
updated by the clients.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClient(FTPClientInterface client) Add a client to be used in calculating statisticsvoidclear()Reset the statistics back to zerointGet the number of files deleted since the count was resetintGet the number of files downloaded since the count was resetintGet the number of files uploaded since the count was resetvoidremoveClient(FTPClientInterface client)
-
Constructor Details
-
FileStatistics
public FileStatistics()Default constructor
-
-
Method Details
-
addClient
Add a client to be used in calculating statistics- Parameters:
client- extra client
-
removeClient
-
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
-