Package cu.ftpd.user.statistics.remote.server

Examples of cu.ftpd.user.statistics.remote.server.RmiUserStatisticsServer


            // 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

TOP

Related Classes of cu.ftpd.user.statistics.remote.server.RmiUserStatisticsServer

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.