Package cu.ftpd.user.statistics.local

Examples of cu.ftpd.user.statistics.local.LocalUserStatistics


        dataDirectory.mkdirs();
        new File(dataDirectory, "/users").mkdirs();
        final File statisticsDir = new File(dataDirectory, "/logs/userstatistics");
        statisticsDir.mkdirs();
        userbase = new LocalUserbase(dataDirectory, false, null);
        statistics = new LocalUserStatistics(statisticsDir);
        this.glftpdRoot = new File(glftpdRoot);
    }
View Full Code Here


            // maybe binding the rmidus instead of the stub keeps it from being GCed (http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=4&t=002159)
            // changed to export the right object to prevent it from being garbage collected (i.e. don't export the stub)
            registry.rebind("userbase", rmidus);

            // STATISTICS
            rmiuss = new RmiUserStatisticsServer(new LocalUserStatistics(new File(dataDirectory, "/logs/userstatistics")));
            RmiUserStatistics statisticsStub = (RmiUserStatistics) UnicastRemoteObject.exportObject(rmiuss, Integer.parseInt(p.getProperty("statistics.port", "0")), csf, ssf);
            //registry.rebind("statistics", statisticsStub);
            // changed to export the right object to prevent it from being garbage collected (i.e. don't export the stub)
            registry.rebind("statistics", rmiuss);
View Full Code Here

                }
                userStatistics = new RmiUserStatisticsClient(settings.get("/user/statistics/remote/host"), settings.getInt("/user/statistics/remote/port"), settings.getInt("/user/statistics/remote/retry_interval"));
                break;
            case 1:
            default:
                userStatistics = new LocalUserStatistics(new File(settings.getDataDirectory(), "/logs/userstatistics"));
                break;
        }
      if (registerStatisticsCommands) {
        // without any statistics, we don't want these commands here.
        // otherwise, things like cubnc using cuftpd will have commands blocking
View Full Code Here

TOP

Related Classes of cu.ftpd.user.statistics.local.LocalUserStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.