org.apache.ftpserver
Class FtpStatistics

java.lang.Object
  extended by org.apache.ftpserver.FtpStatistics

public class FtpStatistics
extends Object

This class encapsulates all the global statistics.

Author:
Rana Bhattacharyya

Constructor Summary
FtpStatistics(FtpConfig cfg)
          Default constructor.
 
Method Summary
 int getAnonLoginNbr()
          Get current anonymous logins.
 int getConnectionNbr()
          Get current number of connections.
 int getFileDeleteNbr()
          Get number of files deleted.
 int getFileDownloadNbr()
          Get number of files downloaded.
 long getFileDownloadSize()
          Get total number of bytes downloaded.
 FtpFileListener getFileListener()
          Set file listener
 int getFileUploadNbr()
          Get number of files uploaded.
 long getFileUploadSize()
          Get total number of bytes uploaded.
 FtpStatisticsListener getListener()
          Get listener object.
 int getLoginNbr()
          Get current number of logins
 Date getStartTime()
          Get server start time.
 int getTotalAnonLoginNbr()
          Get total anonymous logins
 int getTotalConnectionNbr()
          Get total connection number
 int getTotalLoginNbr()
          Get total number of logins
 void setFileListener(FtpFileListener listener)
          Get file listener
 void setListener(FtpStatisticsListener listener)
          Add a listener object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpStatistics

public FtpStatistics(FtpConfig cfg)
Default constructor.

Method Detail

getStartTime

public Date getStartTime()
Get server start time.


getFileUploadNbr

public int getFileUploadNbr()
Get number of files uploaded.


getFileDownloadNbr

public int getFileDownloadNbr()
Get number of files downloaded.


getFileDeleteNbr

public int getFileDeleteNbr()
Get number of files deleted.


getFileUploadSize

public long getFileUploadSize()
Get total number of bytes uploaded.


getFileDownloadSize

public long getFileDownloadSize()
Get total number of bytes downloaded.


getConnectionNbr

public int getConnectionNbr()
Get current number of connections.


getTotalConnectionNbr

public int getTotalConnectionNbr()
Get total connection number


getLoginNbr

public int getLoginNbr()
Get current number of logins


getTotalLoginNbr

public int getTotalLoginNbr()
Get total number of logins


getAnonLoginNbr

public int getAnonLoginNbr()
Get current anonymous logins.


getTotalAnonLoginNbr

public int getTotalAnonLoginNbr()
Get total anonymous logins


setListener

public void setListener(FtpStatisticsListener listener)
Add a listener object.


getListener

public FtpStatisticsListener getListener()
Get listener object.


setFileListener

public void setFileListener(FtpFileListener listener)
Get file listener


getFileListener

public FtpFileListener getFileListener()
Set file listener



Copyright © 2001-2012 Codehaus. All Rights Reserved.