|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.FtpStatistics
public class FtpStatistics
This class encapsulates all the global statistics.
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 |
---|
public FtpStatistics(FtpConfig cfg)
Method Detail |
---|
public Date getStartTime()
public int getFileUploadNbr()
public int getFileDownloadNbr()
public int getFileDeleteNbr()
public long getFileUploadSize()
public long getFileDownloadSize()
public int getConnectionNbr()
public int getTotalConnectionNbr()
public int getLoginNbr()
public int getTotalLoginNbr()
public int getAnonLoginNbr()
public int getTotalAnonLoginNbr()
public void setListener(FtpStatisticsListener listener)
public FtpStatisticsListener getListener()
public void setFileListener(FtpFileListener listener)
public FtpFileListener getFileListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |