Package org.jboss.cache

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


      assert l1.exists(A);
      assert l1.get(A).get("K").equals("V");

      // test persistence
      c1.stop();

      assert l1.exists(A);
      assert l1.get(A).get("K").equals("V");

      Cache c2 = createCache("2", true, false, true, true);
View Full Code Here


      config.setCacheMode(Configuration.CacheMode.LOCAL);
      config.setNodeLockingScheme(Configuration.NodeLockingScheme.MVCC);
      CacheFactory cacheFactory2 = new UnitTestCacheFactory<Object, Object>();
      CacheSPI tmpCacheSPI = (CacheSPI) cacheFactory2.createCache(config);
      defaultInterceptroCount = tmpCacheSPI.getInterceptorChain().size();
      tmpCacheSPI.stop();

      CacheFactory cacheFactory = new UnitTestCacheFactory<Object, Object>();
      config.setCustomInterceptors(interceptorConfig);
      cache = (CacheSPI) cacheFactory.createCache(config, true);
   }
View Full Code Here

                  }
               }

               try
               {
                  spi.stop();
               } catch (Throwable t) {
                  System.out.println(Thread.currentThread().getName() + " !!!!!!!!!!!!!!!!!!!!! WARNING - Cache instance refused to stop.");
                  t.printStackTrace();
               }
               try {
View Full Code Here

      c1.put("/a/b/c", "k", "v");

      System.out.println("BEFORE: " + CachePrinter.printCacheDetails(c1, c2, c3, c4));

      // kill c1
      c1.stop();

      log.error("** Stopped C1!");

      // now stop c2, but make sure it takes time to shut down.
      final StopListener sl = new StopListener();
View Full Code Here

      config.setCacheMode(Configuration.CacheMode.LOCAL);
      config.setNodeLockingScheme(Configuration.NodeLockingScheme.MVCC);
      UnitTestCacheFactory cacheFactory2 = new UnitTestCacheFactory<Object, Object>();
      CacheSPI tmpCacheSPI = (CacheSPI) cacheFactory2.createCache(config, getClass());
      defaultInterceptroCount = tmpCacheSPI.getInterceptorChain().size();
      tmpCacheSPI.stop();

      UnitTestCacheFactory cacheFactory = new UnitTestCacheFactory<Object, Object>();
      config.setCustomInterceptors(interceptorConfig);
      cache = (CacheSPI) cacheFactory.createCache(config, true, getClass());
   }
View Full Code Here

                  }
               }

               try
               {
                  spi.stop();
               } catch (Throwable t) {
                  System.err.println(Thread.currentThread().getName() + " !!!!!!!!!!!!!!!!!!!!! WARNING - Cache instance refused to stop.");
                  t.printStackTrace();
               }
               try {
View Full Code Here

                  }
               }

               try
               {
                  spi.stop();
               } catch (Throwable t) {
                  System.err.println(Thread.currentThread().getName() + " !!!!!!!!!!!!!!!!!!!!! WARNING - Cache instance refused to stop.");
                  t.printStackTrace();
               }
               try {
View Full Code Here

      assert l1.exists(A);
      assert l1.get(A).get("K").equals("V");

      // test persistence
      c1.stop();

      assert l1.exists(A);
      assert l1.get(A).get("K").equals("V");

      Cache c2 = createCache(true, false, true, true);
View Full Code Here

      {

         assertTrue(true);
      }
      assertEquals(null, dummy.getCalled());
      cache.stop();
   }

   public void testNoTransactionGetMethod() throws Exception
   {
View Full Code Here

      {
         fail = true;
      }
      assertTrue(fail);
      assertEquals(null, dummy.getCalled());
      cache.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.