Make client and connection count information available.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2718 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-07-22 02:50:49 +00:00
parent 245a5d5139
commit 493c75b865
@@ -1,5 +1,5 @@
//
// $Id: ClientManager.java,v 1.31 2003/03/30 21:27:23 mdb Exp $
// $Id: ClientManager.java,v 1.32 2003/07/22 02:50:49 mdb Exp $
package com.threerings.presents.server;
@@ -345,6 +345,22 @@ public class ClientManager
}
}
/**
* Returns the number of client sessions (some may be disconnected).
*/
public int getClientCount ()
{
return _usermap.size();
}
/**
* Returns the number of connected clients.
*/
public int getConnectionCount ()
{
return _conmap.size();
}
// documentation inherited from interface PresentsServer.Reporter
public void appendReport (StringBuffer report, long now, long sinceLast)
{