org.apache.ftpserver.remote
Class FtpStatistics

java.lang.Object
  extended byorg.apache.ftpserver.remote.FtpStatistics
All Implemented Interfaces:
FtpStatisticsInterface, java.rmi.Remote

public class FtpStatistics
extends java.lang.Object
implements FtpStatisticsInterface

Ftp statistis remote adapter class.

Author:
Rana Bhattacharyya

Constructor Summary
FtpStatistics(FtpStatistics statistics)
          Constructor - sets the actual statistics object
 
Method Summary
 int getAnonLoginNbr()
          Get current number of 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
 java.util.Date getStartTime()
          Get server start time.
 int getTotalAnonLoginNbr()
          Get total number of anonymous logins
 int getTotalConnectionNbr()
          Get total number of connections
 int getTotalLoginNbr()
          Get total number of logins
 void setFileListener(FtpFileListener listener)
          Get file listener
 void setListener(FtpStatisticsListener listener)
          Set 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(FtpStatistics statistics)
              throws java.rmi.RemoteException
Constructor - sets the actual statistics object

Method Detail

getStartTime

public java.util.Date getStartTime()
Get server start time.

Specified by:
getStartTime in interface FtpStatisticsInterface

getFileUploadNbr

public int getFileUploadNbr()
Get number of files uploaded.

Specified by:
getFileUploadNbr in interface FtpStatisticsInterface

getFileDownloadNbr

public int getFileDownloadNbr()
Get number of files downloaded.

Specified by:
getFileDownloadNbr in interface FtpStatisticsInterface

getFileDeleteNbr

public int getFileDeleteNbr()
Get number of files deleted.

Specified by:
getFileDeleteNbr in interface FtpStatisticsInterface

getFileUploadSize

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

Specified by:
getFileUploadSize in interface FtpStatisticsInterface

getFileDownloadSize

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

Specified by:
getFileDownloadSize in interface FtpStatisticsInterface

getConnectionNbr

public int getConnectionNbr()
Get current number of connections.

Specified by:
getConnectionNbr in interface FtpStatisticsInterface

getTotalConnectionNbr

public int getTotalConnectionNbr()
Get total number of connections

Specified by:
getTotalConnectionNbr in interface FtpStatisticsInterface

getLoginNbr

public int getLoginNbr()
Get current number of logins

Specified by:
getLoginNbr in interface FtpStatisticsInterface

getTotalLoginNbr

public int getTotalLoginNbr()
Get total number of logins

Specified by:
getTotalLoginNbr in interface FtpStatisticsInterface

getAnonLoginNbr

public int getAnonLoginNbr()
Get current number of anonymous logins.

Specified by:
getAnonLoginNbr in interface FtpStatisticsInterface

getTotalAnonLoginNbr

public int getTotalAnonLoginNbr()
Get total number of anonymous logins

Specified by:
getTotalAnonLoginNbr in interface FtpStatisticsInterface

setListener

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

Specified by:
setListener in interface FtpStatisticsInterface

getListener

public FtpStatisticsListener getListener()
Get listener object.

Specified by:
getListener in interface FtpStatisticsInterface

setFileListener

public void setFileListener(FtpFileListener listener)
Get file listener

Specified by:
setFileListener in interface FtpStatisticsInterface

getFileListener

public FtpFileListener getFileListener()
Set file listener

Specified by:
getFileListener in interface FtpStatisticsInterface


Copyright © 2001-2007 Codehaus. All Rights Reserved.