asmuts      02/01/17 15:13:12

  Modified:    src/java/org/apache/stratum/jcs/utils/servlet/session
                        ISessionConstants.java SessionIdGenerator.java
                        SessionInfo.java
  Log:
  cleaned
  distributed sessions -- basics are working, some things to do
  
  Revision  Changes    Path
  1.4       +1 -1      
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/ISessionConstants.java
  
  Index: ISessionConstants.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/ISessionConstants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ISessionConstants.java    15 Jan 2002 21:33:37 -0000      1.3
  +++ ISessionConstants.java    17 Jan 2002 23:13:11 -0000      1.4
  @@ -1,7 +1,7 @@
   package org.apache.stratum.jcs.utils.servlet.session;
   
   /**
  - *  Description of the Interface
  + *  Constants used by the session tracker.
    *
    *@author     asmuts
    *@created    January 15, 2002
  
  
  
  1.4       +2 -9      
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/SessionIdGenerator.java
  
  Index: SessionIdGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/SessionIdGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SessionIdGenerator.java   15 Jan 2002 21:33:37 -0000      1.3
  +++ SessionIdGenerator.java   17 Jan 2002 23:13:11 -0000      1.4
  @@ -10,6 +10,7 @@
    */
   public class SessionIdGenerator
   {
  +
       private static int[] count = new int[1];
       /**
        *  Description of the Field
  @@ -17,16 +18,8 @@
       public final static String JVM_ID = new VMID().toString();
   
   
  -    /*
  -     * public static String createSessionId(SessionInfo svo, String jvmId) {
  -     * synchronized(count) {
  -     * return jvmId + svo.creationTime + count[0]++;
  -     * return jvmId + count[0]++;
  -     * }
  -     * }
  -     */
       /**
  -     *  Description of the Method
  +     *  Creates a unique session id.
        *
        *@return    Description of the Return Value
        */
  
  
  
  1.4       +8 -4      
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/SessionInfo.java
  
  Index: SessionInfo.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/servlet/session/SessionInfo.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SessionInfo.java  15 Jan 2002 21:33:37 -0000      1.3
  +++ SessionInfo.java  17 Jan 2002 23:13:11 -0000      1.4
  @@ -3,7 +3,7 @@
   import java.io.Serializable;
   
   /**
  - *  Description of the Class
  + *  Session information wrapper.
    *
    *@author     asmuts
    *@created    January 15, 2002
  @@ -13,8 +13,11 @@
   
       final long creationTime;
       long lastAccessedTime;
  -    // at first login this might be twice the set amount, depending
  -    // on the update ration
  +
  +    /**
  +     * At first login this might be twice the set amount, depending
  +     * on the update ration.
  +     */
       int maxInactiveInterval = 60 * 60 * 1000;
       // 30 minutes after first hour
   
  @@ -28,7 +31,7 @@
   
   
       /**
  -     *  Description of the Method
  +     *  Prints data to string.
        *
        *@return    Description of the Return Value
        */
  @@ -40,5 +43,6 @@
                + "]"
               ;
       }
  +
   }
   // end SessionInfo
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to