You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2007/05/11 00:04:27 UTC

svn commit: r537012 - in /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed: container/session/PortalSessionsManager.java statistics/UserStats.java

Author: taylor
Date: Thu May 10 15:04:26 2007
New Revision: 537012

URL: http://svn.apache.org/viewvc?view=rev&rev=537012
Log:
https://issues.apache.org/jira/browse/JS2-685

Modified:
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/session/PortalSessionsManager.java
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/UserStats.java

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/session/PortalSessionsManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/session/PortalSessionsManager.java?view=diff&rev=537012&r1=537011&r2=537012
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/session/PortalSessionsManager.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/session/PortalSessionsManager.java Thu May 10 15:04:26 2007
@@ -36,4 +36,9 @@
     void sessionWillPassivate(PortletApplicationSessionMonitor pasm);    
     void sessionDidActivate(PortletApplicationSessionMonitor pasm);    
     void sessionDestroyed(PortletApplicationSessionMonitor pasm);    
+    /**
+     * Returns the number of current sessions. Used to track the number guest users in portal.
+     * @return Number of currently created sessions in the registry
+     */
+    int sessionCount();
 }

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/UserStats.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/UserStats.java?view=diff&rev=537012&r1=537011&r2=537012
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/UserStats.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/UserStats.java Thu May 10 15:04:26 2007
@@ -4,35 +4,43 @@
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.jetspeed.statistics;
-
-import java.io.Serializable;
-
-/**
- * UserStats
- * 
- * @author <a href="mailto:chris@bluesunrise.com">Chris Schaefer </a>
- * @author <a href="mailto:taylor@apache.org">David Sean Taylor </a>
- * @version $Id: $
- */
-public interface UserStats extends Serializable
-{
-
-    public String getUsername();
-
-    public int getNumberOfSessions();
-
-    public void setNumberOfSession(int number);
-
-    public void setUsername(String username);
-}
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jetspeed.statistics;
+
+import java.io.Serializable;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+/**
+ * UserStats
+ * 
+ * @author <a href="mailto:chris@bluesunrise.com">Chris Schaefer </a>
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor </a>
+ * @version $Id: $
+ */
+public interface UserStats extends Serializable
+{
+
+    public String getUsername();
+
+    public int getNumberOfSessions();
+
+    public void setNumberOfSession(int number);
+
+    public void setUsername(String username);
+    
+    public void setInetAddress(InetAddress inetAddress);    
+
+    public InetAddress getInetAddress();
+    
+    public void setInetAddressFromIp(String ip) throws UnknownHostException;
+}



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