ftpstatistics.java

来自「JAVA FTP 上传下载 的源文件」· Java 代码 · 共 141 行

JAVA
141
字号
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.  See the NOTICE file * distributed with this work for additional information * regarding copyright ownership.  The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License.  You may obtain a copy of the License at * *  http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied.  See the License for the * specific language governing permissions and limitations * under the License. */package org.apache.ftpserver.ftplet;import java.net.InetAddress;import java.util.Date;/** * This interface holds all the ftp server statistical information. * * @author The Apache MINA Project (dev@mina.apache.org) * @version $Rev: 711368 $, $Date: 2008-11-04 21:02:43 +0100 (Tue, 04 Nov 2008) $ */public interface FtpStatistics {    /**     * Get the server start time.     * @return The {@link Date} when the server started     */    Date getStartTime();    /**     * Get number of files uploaded.     * @return The total number of uploads     */    int getTotalUploadNumber();    /**     * Get number of files downloaded.     * @return The total number of downloads     */    int getTotalDownloadNumber();    /**     * Get number of files deleted.     * @return The total number of deletions     */    int getTotalDeleteNumber();    /**     * Get total number of bytes uploaded.     * @return The total number of bytes uploaded     */    long getTotalUploadSize();    /**     * Get total number of bytes downloaded.     * @return The total number of bytes downloaded     */    long getTotalDownloadSize();    /**     * Get total directory created.     * @return The total number of created directories     */    int getTotalDirectoryCreated();    /**     * Get total directory removed.     * @return The total number of removed directories     */    int getTotalDirectoryRemoved();    /**     * Get total number of connections     * @return The total number of connections     */    int getTotalConnectionNumber();    /**     * Get current number of connections.     * @return The current number of connections     */    int getCurrentConnectionNumber();    /**     * Get total login number.     * @return The total number of logins     */    int getTotalLoginNumber();    /**     * Get total failed login number.     * @return The total number of failed logins     */    int getTotalFailedLoginNumber();    /**     * Get current login number     * @return The current number of logins     */    int getCurrentLoginNumber();    /**     * Get total anonymous login number.     * @return The total number of anonymous logins     */    int getTotalAnonymousLoginNumber();    /**     * Get current anonymous login number.     * @return The current number of anonymous logins     */    int getCurrentAnonymousLoginNumber();    /**     * Get the login number for the specific user     * @param user The {@link User} for which to retrieve the number of logins     * @return The total number of logins for the provided user     */    int getCurrentUserLoginNumber(User user);    /**     * Get the login number for the specific user from the ipAddress     *      * @param user     *            login user account     * @param ipAddress     *            the ip address of the remote user     * @return The total number of logins for the provided user and IP address     */    int getCurrentUserLoginNumber(User user, InetAddress ipAddress);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?