Author: jcompagner
Date: Wed Nov 29 07:59:16 2006
New Revision: 480610

URL: http://svn.apache.org/viewvc?view=rev&rev=480610
Log:
added getCurrentActiveRequestCount()

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/IRequestLogger.java
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/RequestLogger.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/IRequestLogger.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/IRequestLogger.java?view=diff&rev=480610&r1=480609&r2=480610
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/IRequestLogger.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/IRequestLogger.java
 Wed Nov 29 07:59:16 2006
@@ -55,7 +55,12 @@
        /**
         * @return Collection of live Sessions Data
         */
-       public SessionData[] getLiveSessions();
+       public SessionData[] getLiveSessions();
+       
+       /**
+        * @return The current active requests 
+        */
+       public int getCurrentActiveRequestCount();
 
        /**
         * called when the session is created and has an id. 

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/RequestLogger.java?view=diff&rev=480610&r1=480609&r2=480610
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
 Wed Nov 29 07:59:16 2006
@@ -54,8 +54,6 @@
  * To view this information live see the [EMAIL PROTECTED] InspectorBug} that 
shows the [EMAIL PROTECTED] InspectorPage}
  * with the [EMAIL PROTECTED] LiveSessionsPage}
  * 
- * This class is still a bit experimental for the 1.2 release. Will improve 
further in 2.0
- * 
  * @author jcompagner
  * 
  * @since 1.2
@@ -77,6 +75,10 @@
        {
 
                /**
+                * If you use the request logger log functionality then this 
object
+                * should have a nice String representation. So make sure that 
the toString()
+                * is implemented for the returned object.
+                * 
                 * @return The custom object stored in the request loggers 
current request.
                 */
                Object getSessionInfo();
@@ -134,6 +136,14 @@
        public int getPeakSessions()
        {
                return peakSessions;
+       }
+       
+       /**
+        * @see 
wicket.protocol.http.IRequestLogger#getCurrentActiveRequestCount()
+        */
+       public int getCurrentActiveRequestCount()
+       {
+               return active;
        }
        
        /**


Reply via email to