org.apache.ftpserver.interfaces
Interface ServerFtpStatistics

All Superinterfaces:
FtpStatistics
All Known Implementing Classes:
FtpStatisticsImpl

public interface ServerFtpStatistics
extends FtpStatistics

This is same as org.apache.ftpserver.ftplet.FtpStatistics with added observer and setting values functionalities.


Method Summary
 void resetStatisticsCounters()
          Reset all cumulative total counters.
 void setCloseConnection(FtpIoSession session)
          Decrement close connection count.
 void setDelete(FtpIoSession session, FileObject file)
          Increment delete count.
 void setDownload(FtpIoSession session, FileObject file, long size)
          Increment download count.
 void setFileObserver(FileObserver observer)
          Set file observer.
 void setLogin(FtpIoSession session)
          Increment current login count.
 void setLoginFail(FtpIoSession session)
          Increment failed login count.
 void setLogout(FtpIoSession session)
          Decrement current login count.
 void setMkdir(FtpIoSession session, FileObject dir)
          Increment make directory count.
 void setObserver(StatisticsObserver observer)
          Set statistics observer.
 void setOpenConnection(FtpIoSession session)
          Increment current connection count.
 void setRmdir(FtpIoSession session, FileObject dir)
          Decrement remove directory count.
 void setUpload(FtpIoSession session, FileObject file, long size)
          Increment upload count.
 
Methods inherited from interface org.apache.ftpserver.ftplet.FtpStatistics
getCurrentAnonymousLoginNumber, getCurrentConnectionNumber, getCurrentLoginNumber, getCurrentUserLoginNumber, getCurrentUserLoginNumber, getStartTime, getTotalAnonymousLoginNumber, getTotalConnectionNumber, getTotalDeleteNumber, getTotalDirectoryCreated, getTotalDirectoryRemoved, getTotalDownloadNumber, getTotalDownloadSize, getTotalFailedLoginNumber, getTotalLoginNumber, getTotalUploadNumber, getTotalUploadSize
 

Method Detail

setObserver

void setObserver(StatisticsObserver observer)
Set statistics observer.


setFileObserver

void setFileObserver(FileObserver observer)
Set file observer.


setUpload

void setUpload(FtpIoSession session,
               FileObject file,
               long size)
Increment upload count.


setDownload

void setDownload(FtpIoSession session,
                 FileObject file,
                 long size)
Increment download count.


setMkdir

void setMkdir(FtpIoSession session,
              FileObject dir)
Increment make directory count.


setRmdir

void setRmdir(FtpIoSession session,
              FileObject dir)
Decrement remove directory count.


setDelete

void setDelete(FtpIoSession session,
               FileObject file)
Increment delete count.


setOpenConnection

void setOpenConnection(FtpIoSession session)
Increment current connection count.


setCloseConnection

void setCloseConnection(FtpIoSession session)
Decrement close connection count.


setLogin

void setLogin(FtpIoSession session)
Increment current login count.


setLoginFail

void setLoginFail(FtpIoSession session)
Increment failed login count.


setLogout

void setLogout(FtpIoSession session)
Decrement current login count.


resetStatisticsCounters

void resetStatisticsCounters()
Reset all cumulative total counters. Do not reset current counters, like current logins, otherwise these will become negative when someone disconnects.



Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.