Package org.jboss.web.tomcat.service.session

Examples of org.jboss.web.tomcat.service.session.JBossCacheManager.backgroundProcess()


     
      // Passivate
      Thread.sleep(1100);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here


     
      // Passivate
      Thread.sleep(1100);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here

     
      // Passivate
      Thread.sleep(1100);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here

     
      // Expire
      Thread.sleep(1000);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here

      Thread.sleep(1100);
     
      log.info("passivate node 0");
      jbcm0.backgroundProcess();
      log.info("passivate node 1");
      jbcm1.backgroundProcess();
     
      System.gc();
      System.runFinalization();
      assertEquals(0, Attribute.attributeCount());
      assertNull(session0A.get());
View Full Code Here

      Thread.sleep(1100);
     
      log.info("passivate node 0");
      jbcm0.backgroundProcess();
      log.info("passivate node 1");
      jbcm1.backgroundProcess();
     
      System.gc();
      System.runFinalization();
      assertEquals(0, Attribute.attributeCount());
      assertNull(session0B.get());
View Full Code Here

      Thread.sleep(2100);
     
      log.info("expire node 0");
      jbcm0.backgroundProcess();
      log.info("expire node 1");
      jbcm1.backgroundProcess();
     
      System.gc();
      System.runFinalization();
      assertNull(session0A.get());
      assertNull(session1A.get());
View Full Code Here

      String id = setHandler.getSessionId();
     
      SessionTestUtil.sleepThread(1100);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();    
     
      value = "1";
      setHandler = new SetAttributesRequestHandler(Collections.singletonMap("count", value), false);
      SessionTestUtil.invokeRequest(jbcm0, setHandler, id);
     
View Full Code Here

      String id = setHandler.getSessionId();
     
      SessionTestUtil.sleepThread(1100);
     
      jbcm0.backgroundProcess();
      jbcm1.backgroundProcess();    
     
      value = "1";
      setHandler = new SetAttributesRequestHandler(Collections.singletonMap("count", value), false);
      SessionTestUtil.invokeRequest(jbcm1, setHandler, id);
     
View Full Code Here

      // if it doesn't have a maxUnreplicatedInterval grace period
      Thread.sleep(2800);
     
      // jbcm1 considers the session unmodified for > 3 sec maxInactiveInterval.
      // Try to drive the session out of the jbcm1 cache     
      jbcm1.backgroundProcess();
     
      // Replicate just one attribute; see if the other is still in jbcm1
      SetAttributesRequestHandler modifyHandler = new SetAttributesRequestHandler(mutables, false);
      SessionTestUtil.invokeRequest(jbcm0, modifyHandler, setHandler.getSessionId());
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.