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

Examples of org.jboss.web.tomcat.service.session.persistent.DataSourcePersistentManager.start()


   {
      ++testCount;
      DataSourcePersistentManager mgr0 = PersistentSessionTestUtil.createManager("test" + testCount, 300, null);
      PersistentSessionTestUtil.configureManager(mgr0, 1);
     
      mgr0.start();
     
      assertFalse("Passivation is disabled", mgr0.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr0.getMaxActiveAllowed());
      assertEquals("Correct max idle time", -1, mgr0.getPassivationMaxIdleTime());
      assertEquals("Correct min idle time", -1, mgr0.getPassivationMinIdleTime());
View Full Code Here


      assertEquals("Correct min idle time", -1, mgr0.getPassivationMinIdleTime());
     
      DataSourcePersistentManager mgr1 = PersistentSessionTestUtil.createManager("test" + testCount, 300, null);
      PersistentSessionTestUtil.configureManager(mgr1, 1);
     
      mgr1.start();
     
      assertFalse("Passivation is disabled", mgr1.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr1.getMaxActiveAllowed());
      assertEquals("Correct max idle time", -1, mgr1.getPassivationMaxIdleTime());
      assertEquals("Correct min idle time", -1, mgr1.getPassivationMinIdleTime());
View Full Code Here

      throws Exception
   {
      DataSourcePersistentManager mgr0 = PersistentSessionTestUtil.createManager(warname, maxInactive, null);
      PersistentSessionTestUtil.configureManager(mgr0, getReplicationGranularity(), getReplicationTrigger(), true, maxUnreplicated);
      this.managers.add(mgr0);
      mgr0.start();
     
      DataSourcePersistentManager mgr1 = PersistentSessionTestUtil.createManager(warname, maxInactive, null);
      PersistentSessionTestUtil.configureManager(mgr1, getReplicationGranularity(), getReplicationTrigger(), true, maxUnreplicated);
      this.managers.add(mgr1);
      mgr1.start();
View Full Code Here

      mgr0.start();
     
      DataSourcePersistentManager mgr1 = PersistentSessionTestUtil.createManager(warname, maxInactive, null);
      PersistentSessionTestUtil.configureManager(mgr1, getReplicationGranularity(), getReplicationTrigger(), true, maxUnreplicated);
      this.managers.add(mgr1);
      mgr1.start();
     
      return new DataSourcePersistentManager[]{mgr0, mgr1};
   }
  
   protected void validateExpectedAttributes(Map<String, Object> expected, BasicRequestHandler handler)
View Full Code Here

      ++testCount;
     
      DataSourcePersistentManager mgr = PersistentSessionTestUtil.createManager("test" + testCount, 5, null);      
      PersistentSessionTestUtil.configureManager(mgr, 2);
     
      mgr.start();
     
      assertFalse("Passivation is disabled", mgr.isPassivationEnabled());
      assertEquals("Correct max active count", 2, mgr.getMaxActiveAllowed());
     
      // Set up a session
View Full Code Here

      ++testCount;
      DataSourcePersistentManager mgr = PersistentSessionTestUtil.createManager("test" + testCount, 5, null);
      
      PersistentSessionTestUtil.configureManager(mgr, 1, true, 1, -1);
     
      mgr.start();
     
      assertTrue("Passivation is enabled", mgr.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr.getMaxActiveAllowed());
      assertEquals("Correct max idle time", 1, mgr.getPassivationMaxIdleTime());
      assertEquals("Correct min idle time", -1, mgr.getPassivationMinIdleTime());
View Full Code Here

      ++testCount;
      DataSourcePersistentManager mgr = PersistentSessionTestUtil.createManager("test" + testCount, 5, null);
     
      PersistentSessionTestUtil.configureManager(mgr, 1, true, 3, 1);
     
      mgr.start();
     
      assertTrue("Passivation is enabled", mgr.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr.getMaxActiveAllowed());
      assertEquals("Correct max idle time", 3, mgr.getPassivationMaxIdleTime());
      assertEquals("Correct min idle time", 1, mgr.getPassivationMinIdleTime());
View Full Code Here

     
      ++testCount;
      DataSourcePersistentManager mgr0 = PersistentSessionTestUtil.createManager("test" + testCount, 1, null);     
      PersistentSessionTestUtil.configureManager(mgr0, 1);
     
      mgr0.start();
     
      assertFalse("Passivation is disabled", mgr0.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr0.getMaxActiveAllowed());
      assertEquals("Correct max inactive interval", 1, mgr0.getMaxInactiveInterval());
     
View Full Code Here

      assertEquals("Correct max inactive interval", 1, mgr0.getMaxInactiveInterval());
     
      DataSourcePersistentManager mgr1 = PersistentSessionTestUtil.createManager("test" + testCount, 1, null);
      PersistentSessionTestUtil.configureManager(mgr1, 1);
     
      mgr1.start();
     
      assertFalse("Passivation is disabled", mgr1.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr1.getMaxActiveAllowed());
      assertEquals("Correct max inactive interval", 1, mgr1.getMaxInactiveInterval());
     
View Full Code Here

     
      ++testCount;
      DataSourcePersistentManager mgr0 = PersistentSessionTestUtil.createManager("test" + testCount, 5, null);     
      PersistentSessionTestUtil.configureManager(mgr0, 1, true, 1, -1);
     
      mgr0.start();
     
      assertTrue("Passivation is enabled", mgr0.isPassivationEnabled());
      assertEquals("Correct max active count", 1, mgr0.getMaxActiveAllowed());
      assertEquals("Correct max idle time", 1, mgr0.getPassivationMaxIdleTime());
      assertEquals("Correct min idle time", -1, mgr0.getPassivationMinIdleTime());
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.