Examples of releaseCache()


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

     
      // 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

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

      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

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

     
      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

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

      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

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

     
      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

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

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

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

         registry.releaseCache(name);
      }
     
      for (String name : pojos)
      {
         registry.releaseCache(name);
      }
     
      for (Cache cache : caches)
      {
         assertEquals(CacheStatus.STARTED, cache.getCacheStatus());        
View Full Code Here

Examples of org.jboss.ha.framework.server.PojoCacheManager.releaseCache()

   protected void releaseCacheToManager(String cacheConfigName)
   {     
      try
      {
         PojoCacheManager pcm = PojoCacheManagerLocator.getCacheManagerLocator().getCacheManager(null);
         pcm.releaseCache(cacheConfigName);
      }
      catch (Exception e)
      {
         log_.error("Problem releasing cache to CacheManager -- config is " + cacheConfigName, e);
      }
View Full Code Here

Examples of org.jboss.ha.framework.server.PojoCacheManager.releaseCache()

   protected void releaseCacheToManager(String cacheConfigName)
   {     
      try
      {
         PojoCacheManager pcm = PojoCacheManagerLocator.getCacheManagerLocator().getCacheManager(null);
         pcm.releaseCache(cacheConfigName);
      }
      catch (Exception e)
      {
         log_.error("Problem releasing cache to CacheManager -- config is " + cacheConfigName, e);
      }
View Full Code Here

Examples of org.jboss.ha.framework.server.PojoCacheManager.releaseCache()

      if (cache != null && cacheConfigName != null)
      {
         if (usePojoCache)
         {
            PojoCacheManager cm = PojoCacheManagerLocator.getCacheManagerLocator().getCacheManager(null);
            cm.releaseCache(cacheConfigName);
         }
         else
         {
            CacheManager cm = CacheManagerLocator.getCacheManagerLocator().getCacheManager(null);
            cm.releaseCache(cacheConfigName);
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.