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