User: jules_gosnell
  Date: 02/02/13 17:03:16

  Modified:    jetty/src/main/org/jboss/jetty/session
                        DistributedHttpSessionManager.java
  Log:
  a bit more work on timers etc..
  comment out Mortbay Logger MBean - it's causing trouble
  
  Revision  Changes    Path
  1.13      +9 -11     
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.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DistributedHttpSessionManager.java        13 Feb 2002 01:03:06 -0000      1.12
  +++ DistributedHttpSessionManager.java        14 Feb 2002 01:03:16 -0000      1.13
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: DistributedHttpSessionManager.java,v 1.12 2002/02/13 01:03:06 jules_gosnell 
Exp $
  +// $Id: DistributedHttpSessionManager.java,v 1.13 2002/02/14 01:03:16 jules_gosnell 
Exp $
   
   // TODO
   
  @@ -110,7 +110,8 @@
       super(notifyActivate, notifyPassivate);
     }
   
  -  public void snapshot(DistributedHttpSession session)
  +  public void
  +    snapshot(DistributedHttpSession session)
     {}
   }
   
  @@ -125,7 +126,7 @@
         timeOut(Object object)
       {
         IntervalSnapshotStrategy iss=(IntervalSnapshotStrategy)object;
  -      System.out.println("snapshotting HttpSessions for Context 
("+iss._manager.getServletContext()+")");
  +      System.out.println("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);
       }
  @@ -133,7 +134,6 @@
       public long
         timeRemaining(Object object, long timeRegistered, long timeNow, long 
maxInactiveInterval)
       {
  -      System.out.println("checking time left: 
"+((timeRegistered+maxInactiveInterval)-timeNow));
         return (timeRegistered+maxInactiveInterval)-timeNow;
       }
     }
  @@ -148,20 +148,20 @@
       super(notifyActivate, notifyPassivate);
       _interval=interval;
       _manager=manager;
  -
  -    _timer.register(this, System.currentTimeMillis(), _interval*1000);
     }
   
     public void
       start()
     {
  -    _timer.start();
  +    super.start();
  +    _timer.register(this, System.currentTimeMillis(), _interval*1000);
     }
   
     public void
       stop()
     {
  -    _timer.stop();
  +    super.stop();
  +    _timer.deregister(this);
     }
   }
   
  @@ -201,7 +201,7 @@
   //------------------------------------------------------------------------------
   /**
    *
  - * @version $Id: DistributedHttpSessionManager.java,v 1.12 2002/02/13 01:03:06 
jules_gosnell Exp $
  + * @version $Id: DistributedHttpSessionManager.java,v 1.13 2002/02/14 01:03:16 
jules_gosnell Exp $
    * @author [EMAIL PROTECTED]
    */
   //----------------------------------------
  @@ -439,7 +439,6 @@
       throws Exception
     {
       _isStarted=true;
  -    _scavenger.start();
       _snapshotStrategy.start();
   
       // sessions are activated lazily...
  @@ -449,7 +448,6 @@
       stop()                   // TODO
     {
       _snapshotStrategy.stop();
  -    _scavenger.stop();
       _isStarted=false;                // TODO
   
       // tidy up all sessions...
  
  
  

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

Reply via email to