Package org.jboss.cache

Examples of org.jboss.cache.CacheManagerImpl.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);
      assertTrue(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.getCacheNames();
      assertEquals(0, cacheNames.size());
View Full Code Here

      // Test 2 checkouts of the same cache
      Cache<Object, Object> cache2 = registry.getCache(configName, true);
      assertTrue(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.getCacheNames();
      assertEquals(0, cacheNames.size());
     
View Full Code Here

     
      // Test 2 checkouts of the same cache
      Cache<Object, Object> cache2 = registry.getCache(configName, true);     
      assertTrue(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

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.