User: jules_gosnell
  Date: 02/04/16 13:29:57

  Modified:    jetty/src/main/org/jboss/jetty/session
                        DistributedHttpSessionManager.java
  Log:
  logging changes
  
  Revision  Changes    Path
  1.14      +10 -6     
contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSessionManager.java
  
  Index: DistributedHttpSessionManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/session/DistributedHttpSessionManager.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DistributedHttpSessionManager.java        14 Feb 2002 01:03:16 -0000      1.13
  +++ DistributedHttpSessionManager.java        16 Apr 2002 20:29:57 -0000      1.14
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: DistributedHttpSessionManager.java,v 1.13 2002/02/14 01:03:16 jules_gosnell 
Exp $
  +// $Id: DistributedHttpSessionManager.java,v 1.14 2002/04/16 20:29:57 jules_gosnell 
Exp $
   
   // TODO
   
  @@ -118,6 +118,8 @@
   class IntervalSnapshotStrategy
     extends SnapshotStrategy
   {
  +  static final Logger _log=Logger.getLogger("IntervalSnapshotStrategy");
  +
     static class
       TimeOutHelper
       implements AbstractTimeOutManager.TimeOutHelper
  @@ -126,7 +128,7 @@
         timeOut(Object object)
       {
         IntervalSnapshotStrategy iss=(IntervalSnapshotStrategy)object;
  -      System.out.println("snapshotting HttpSessions for Context 
("+iss._manager.getServletContext().getServletContextName()+")");
  +      _log.info("snapshotting HttpSessions for Context 
("+iss._manager.getServletContext().getServletContextName()+")");
         iss._manager.snapshot(iss._notifyActivate, iss._notifyPassivate);      // 
should probably be done on another thread....
         iss._timer.reregister(iss, System.currentTimeMillis(), iss._interval*1000);
       }
  @@ -179,14 +181,16 @@
   
   //------------------------------------------------------------------------------
   
  -class MyTimeOutHelper
  +class DistributedHttpSessionTimer
     implements AbstractTimeOutManager.TimeOutHelper
   {
  +  static final Logger _log=Logger.getLogger("DistributedHttpSessionTimer");
  +
     public void
       timeOut(Object object)
     {
       DistributedHttpSession session=(DistributedHttpSession)object;
  -    System.out.println("session ("+session.getId()+") timed out - cleaning up");
  +    _log.info("session ("+session.getId()+") timed out - cleaning up");
       session.getManager().destroyHttpSession(session);
     }
   
  @@ -201,7 +205,7 @@
   //------------------------------------------------------------------------------
   /**
    *
  - * @version $Id: DistributedHttpSessionManager.java,v 1.13 2002/02/14 01:03:16 
jules_gosnell Exp $
  + * @version $Id: DistributedHttpSessionManager.java,v 1.14 2002/04/16 20:29:57 
jules_gosnell Exp $
    * @author [EMAIL PROTECTED]
    */
   //----------------------------------------
  @@ -209,7 +213,7 @@
   public class DistributedHttpSessionManager
     implements org.mortbay.jetty.servlet.SessionManager
   {
  -  static AbstractTimeOutManager    _scavenger                 =new 
NaiveTimeOutManager(5*1000, new MyTimeOutHelper());
  +  static AbstractTimeOutManager    _scavenger                 =new 
NaiveTimeOutManager(5*1000, new DistributedHttpSessionTimer());
     final AbstractStore              _store;
     final SnapshotStrategy           _snapshotStrategy;
     final Logger                     _log;
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to