tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angus Mezick" <amez...@guidestar.org>
Subject [PATCH] Use correct method to get number of active sessions.
Date Tue, 08 Jul 2003 13:28:30 GMT
The question is: Why turn a hashmap into an array just to take its
length when you already have a method that returns the number of
sessions?  This will make the life of people who write session managers
that DON'T store all the active sessions in memory easier.


--- HTMLManagerServlet.java     2003-03-19 04:18:34.000000000 -0500
+++ HTMLManagerServlet.java     2003-07-08 09:22:04.000000000 -0400
@@ -403,7 +403,7 @@
                     (request.getContextPath() +
                      "/html/sessions?path=" + displayPath);
                 args[4] =
-                    new
Integer(context.getManager().findSessions().length);
+                    new
Integer(context.getManager().getActiveSessions());
                 writer.print
                     (MessageFormat.format(APPS_ROW_DETAILS_SECTION,
args));

Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
amezick@guidestar.org <mailto:amezick@guidestar.org>
www.guidestar.org <http://www.guidestar.org>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message