FtpReply.REPLY_530_NOT_LOGGED_IN, "SITE", null));
return;
}
// get statistics information
FtpStatistics stat = context.getFtpStatistics();
StringBuilder sb = new StringBuilder(256);
sb.append('\n');
sb.append("Start Time : ").append(
DateUtils.getISO8601Date(stat.getStartTime().getTime()))
.append('\n');
sb.append("File Upload Number : ").append(
stat.getTotalUploadNumber()).append('\n');
sb.append("File Download Number : ").append(
stat.getTotalDownloadNumber()).append('\n');
sb.append("File Delete Number : ").append(
stat.getTotalDeleteNumber()).append('\n');
sb.append("File Upload Bytes : ").append(
stat.getTotalUploadSize()).append('\n');
sb.append("File Download Bytes : ").append(
stat.getTotalDownloadSize()).append('\n');
sb.append("Directory Create Number : ").append(
stat.getTotalDirectoryCreated()).append('\n');
sb.append("Directory Remove Number : ").append(
stat.getTotalDirectoryRemoved()).append('\n');
sb.append("Current Logins : ").append(
stat.getCurrentLoginNumber()).append('\n');
sb.append("Total Logins : ").append(
stat.getTotalLoginNumber()).append('\n');
sb.append("Current Anonymous Logins : ").append(
stat.getCurrentAnonymousLoginNumber()).append('\n');
sb.append("Total Anonymous Logins : ").append(
stat.getTotalAnonymousLoginNumber()).append('\n');
sb.append("Current Connections : ").append(
stat.getCurrentConnectionNumber()).append('\n');
sb.append("Total Connections : ").append(
stat.getTotalConnectionNumber()).append('\n');
sb.append('\n');
session.write(new DefaultFtpReply(FtpReply.REPLY_200_COMMAND_OKAY, sb
.toString()));
}