net.jetrix.config
Class Statistics

java.lang.Object
  extended by net.jetrix.config.Statistics

public class Statistics
extends Object

Basic statistics about the server usage.

Version:
$Revision: 449 $, $Date: 2004-11-05 19:15:05 +0100 (ven., 05 nov. 2004) $
Author:
Emmanuel Bourg

Constructor Summary
Statistics()
           
 
Method Summary
 int getConnectionCount()
          Return the number of connections from spectators and players.
 int getGameCount()
          Return the number of games played.
 long getUpTime()
          Return the uptime of the server (in days).
 void increaseConnectionCount()
          Add 1 to the number of connections.
 void increaseGameCount()
          Add 1 to the number of games played.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics()
Method Detail

getUpTime

public long getUpTime()
Return the uptime of the server (in days).


getGameCount

public int getGameCount()
Return the number of games played.


increaseGameCount

public void increaseGameCount()
Add 1 to the number of games played.


getConnectionCount

public int getConnectionCount()
Return the number of connections from spectators and players.


increaseConnectionCount

public void increaseConnectionCount()
Add 1 to the number of connections.



Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.