Package org.jboss.ha.cachemanager

Examples of org.jboss.ha.cachemanager.CacheManager.releaseCache()


      assertEquals(configNames, cacheNames);
     
      // Test basic releasing of caches
      for (String configName : configNames)
      {
         registry.releaseCache(configName);        
      }
     
      cacheNames = registry.getCacheNames();
      assertEquals(0, cacheNames.size());
     
View Full Code Here


     
      // Test 2 checkouts of the same cache
      Cache<Object, Object> cache2 = registry.getCache(configName, true);     
      assertEquals(cache, cache2);
     
      registry.releaseCache(configName);
     
      // One release does not cause registry to stop cache
      assertEquals(CacheStatus.STARTED, cache.getCacheStatus());
     
      registry.stop();
View Full Code Here

      assertEquals(configNames, cacheNames);
     
      // Test basic releasing of caches
      for (String configName : configNames)
      {
         registry.releaseCache(configName);        
      }
     
      cacheNames = registry.getPojoCacheNames();
      assertEquals(0, cacheNames.size());
     
View Full Code Here

     
      // Test 2 checkouts of the same cache
      PojoCache cache2 = registry.getPojoCache(configName, true);     
      assertEquals(cache, cache2);
     
      registry.releaseCache(configName);
     
      // One release does not cause registry to stop cache
      assertEquals(CacheStatus.STARTED, cache.getCache().getCacheStatus());
     
      registry.stop();
View Full Code Here

      Cache other = registry.getCache(DEFAULT_STACK, false);
      assertEquals(cache, other);
     
      assertEquals(1, registry.getCacheNames().size());
     
      registry.releaseCache(DEFAULT_STACK);
     
      assertEquals(1, registry.getCacheNames().size());
     
      registry.releaseCache("alias");
     
View Full Code Here

     
      registry.releaseCache(DEFAULT_STACK);
     
      assertEquals(1, registry.getCacheNames().size());
     
      registry.releaseCache("alias");
     
      assertEquals(0, registry.getCacheNames().size());
     
      PojoCache pcache = registry.getPojoCache("alias", true);
      assertNotNull(pcache);
View Full Code Here

      PojoCache otherPC = registry.getPojoCache(DEFAULT_STACK, false);
      assertEquals(pcache, otherPC);
     
      assertEquals(1, registry.getPojoCacheNames().size());
     
      registry.releaseCache(DEFAULT_STACK);
     
      assertEquals(1, registry.getPojoCacheNames().size());
     
      registry.releaseCache("alias");
     
View Full Code Here

     
      registry.releaseCache(DEFAULT_STACK);
     
      assertEquals(1, registry.getPojoCacheNames().size());
     
      registry.releaseCache("alias");
     
      assertEquals(0, registry.getPojoCacheNames().size());     
   }
  
   public void testEagerStartCaches() throws Exception
View Full Code Here

         caches.add(cache);
      }
     
      for (String name : cores)
      {
         registry.releaseCache(name);
      }
     
      for (String name : pojos)
      {
         registry.releaseCache(name);
View Full Code Here

         registry.releaseCache(name);
      }
     
      for (String name : pojos)
      {
         registry.releaseCache(name);
      }
     
      for (Cache cache : caches)
      {
         assertEquals(CacheStatus.STARTED, cache.getCacheStatus());        
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.