Package org.jboss.cache

Examples of org.jboss.cache.Cache.stop()


      DefaultCacheFactory ucf = new DefaultCacheFactory();
      for (String aConfFile : getConfigFileNames())
      {
         assert !appender.isFoundUnknownWarning();
         Cache cache = ucf.createCache(CONFIG_ROOT + "/" + aConfFile, true);
         cache.stop();
         cache.destroy();
         assert !appender.isFoundUnknownWarning();
      }
   }
View Full Code Here


      assert cache.getCacheStatus() == STARTED;

      assert cache.getConfiguration().getIsolationLevel() == REPEATABLE_READ;
      assert cache.getConfiguration().getCacheMode() == LOCAL;

      cache.stop();
   }

   public void testConfigFilesRC() {
      Cache cache = new DefaultCacheFactory().createCache("mvcc/mvcc-local-RC.xml");
      cache.start();
View Full Code Here

      assert cache.getCacheStatus() == STARTED;

      assert cache.getConfiguration().getIsolationLevel() == READ_COMMITTED;
      assert cache.getConfiguration().getCacheMode() == LOCAL;

      cache.stop();
   }
}
View Full Code Here

         }
      }
     
      try
      {
         cache.stop();
         cache.destroy();
      }
      catch (Exception e)
      {
         log.error("Cache " + cache + ": " + e.getMessage(), e);
View Full Code Here

      c.setNodeLockingScheme(Configuration.NodeLockingScheme.PESSIMISTIC);
      Cache cache = new DefaultCacheFactory().createCache(c);

      assertInterceptorsHaveSameCache((CacheSPI) cache);

      cache.stop();
   }

   public void testOptLocking() throws Exception
   {
      Configuration c = new Configuration();
View Full Code Here

      c.setNodeLockingScheme(Configuration.NodeLockingScheme.OPTIMISTIC);
      Cache cache = new DefaultCacheFactory().createCache(c);

      assertInterceptorsHaveSameCache((CacheSPI) cache);

      cache.stop();
   }

   private void assertInterceptorsHaveSameCache(CacheSPI<?, ?> c)
   {
      for (Interceptor i : c.getInterceptorChain())
View Full Code Here

        factories.clear();
       
        for (Iterator it = caches.iterator(); it.hasNext(); ) {
            try {
                Cache cache = (Cache) it.next();
                cache.stop();
                cache.destroy();
            }
            catch (Exception e) {
                storeException(e);
            }
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.