Commit a9337bdf authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified place stats were created and added to stats manager.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4090 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3ff44ebf
......@@ -34,6 +34,7 @@ import org.jivesoftware.wildfire.handler.*;
import org.jivesoftware.wildfire.muc.MultiUserChatServer;
import org.jivesoftware.wildfire.muc.spi.MultiUserChatServerImpl;
import org.jivesoftware.wildfire.net.MulticastDNSService;
import org.jivesoftware.wildfire.net.ServerTrafficCounter;
import org.jivesoftware.wildfire.pubsub.PubSubModule;
import org.jivesoftware.wildfire.roster.RosterManager;
import org.jivesoftware.wildfire.spi.*;
......@@ -374,13 +375,15 @@ public class XMPPServer {
// Initialize component manager (initialize before plugins get loaded)
InternalComponentManager.getInstance().start();
}
// Initialize statistics
ServerTrafficCounter.initStatistics();
// Load plugins (when in setup mode only the admin console will be loaded)
File pluginDir = new File(wildfireHome, "plugins");
pluginManager = new PluginManager(pluginDir);
pluginManager.start();
// Log that the server has been started
List<String> params = new ArrayList<String>();
params.add(version.getVersionString());
params.add(JiveGlobals.formatDateTime(new Date()));
......
......@@ -47,8 +47,10 @@ public class ServerTrafficCounter {
private static final String incomingStatKey = "server_bytes_in";
private static final String outgoingStatKey = "server_bytes_out";
static {
// Create and add statistics to statistic manager
/**
* Creates and adds statistics to statistic manager.
*/
public static void initStatistics() {
addReadBytesStat();
addWrittenBytesStat();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment