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

Renamed statistics plugin to loadStats.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7094 b35dd754-fafc-0310-a699-88a17e54d16e
parent 55d2cadc
......@@ -2,7 +2,7 @@
<html>
<head>
<title>Statistic Plugin Changelog</title>
<title>Load Statistic Plugin Changelog</title>
<style type="text/css">
BODY {
font-size : 100%;
......@@ -41,10 +41,10 @@
<body>
<h1>
Statistic Plugin Changelog
Load Statistic Plugin Changelog
</h1>
<p><b>1.0.0</b> -- February 06, 2007</p>
<p><b>1.0.0</b> -- February 15, 2007</p>
<ul>
<li>Initial release.</li>
......
......@@ -2,10 +2,10 @@
<plugin>
<class>org.jivesoftware.wildfire.plugin.StatisticPlugin</class>
<name>Statistic</name>
<description>Logs server statistics to a file</description>
<name>Load Statistic</name>
<description>Logs load statistics to a file</description>
<author>Jive Software</author>
<version>1.0.0</version>
<date>2/6/2007</date>
<date>2/15/2007</date>
<minServerVersion>3.2.0</minServerVersion>
</plugin>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<html>
<head>
<title>Statistic Plugin Readme</title>
<title>Load Statistic Plugin Readme</title>
<style type="text/css">
BODY {
font-size : 100%;
......@@ -57,7 +57,7 @@
<body>
<h1>
Statistic Plugin Readme
Load Statistic Plugin Readme
</h1>
<h2>Overview</h2>
......
......@@ -12,6 +12,7 @@
package org.jivesoftware.wildfire.plugin;
import org.apache.mina.common.ExecutorThreadModel;
import org.apache.mina.management.MINAStatCollector;
import org.apache.mina.transport.socket.nio.SocketAcceptor;
import org.jivesoftware.database.DbConnectionManager;
import org.jivesoftware.util.JiveGlobals;
......@@ -43,7 +44,7 @@ public class StatCollector extends TimerTask {
// Take a sample every X seconds
private int frequency;
private boolean started = false;
private org.apache.mina.management.StatCollector statCollector;
private MINAStatCollector statCollector;
public StatCollector(int frequency) {
this.frequency = frequency;
......@@ -55,7 +56,7 @@ public class StatCollector extends TimerTask {
else {
socketAcceptor = connectionManager.getSocketAcceptor();
}
statCollector = new org.apache.mina.management.StatCollector(socketAcceptor, frequency - 1000);
statCollector = new MINAStatCollector(socketAcceptor, frequency - 1000);
}
public void run() {
......
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