Examples of stop()


Examples of org.jboss.bootstrap.api.mc.server.MCServer.stop()

      if (server != null && server.getState().equals(LifecycleState.STARTED))
      {
         // Bring it down
         try
         {
            server.stop();
         }
         catch (final Exception e)
         {
            throw new LifecycleException("Error in stopping the Microcontainer server " + server, e);
         }
View Full Code Here

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

         cache.get(Fqn.ROOT, "x");
         assert 0 == i.get();
      }
      finally
      {
         cache.stop();
      }
   }

   @CacheListener
   public static class Listener
View Full Code Here

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

      registry.releaseCache(configName);

      // One release does not cause registry to stop cache
      assertEquals(CacheStatus.STARTED, cache.getCacheStatus());

      registry.stop();

      // Now it's stopped
      assertEquals(CacheStatus.DESTROYED, cache.getCacheStatus());
      caches.remove(cache);
View Full Code Here

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

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

      assertEquals(0, c1.getNumberOfLocksHeld());
      assertEquals(0, c2.getNumberOfLocksHeld());

      c1.stop();
      c2.stop();

//      if(ex != null)
//      {
//         ex.printStackTrace();
//         fail("Thread failed: " + ex);
View Full Code Here

Examples of org.jboss.cache.factories.ComponentRegistry.stop()

   }

   protected VersionAwareMarshaller createVAMandRestartCache(RegionManager rm)
   {
      ComponentRegistry cr = crTL.get();
      if (cr.getState() == CacheStatus.STARTED) cr.stop();
      cr.registerComponent(rm, RegionManager.class);
      cr.create();
      cr.rewire();
      // force cache mode
      VersionAwareMarshaller m = (VersionAwareMarshaller) cr.getComponent(Marshaller.class);
View Full Code Here

Examples of org.jboss.cache.jmx.CacheJmxWrapper.stop()

      {
         try
         {
            if (wrapper != null)
            {
               wrapper.stop();
               wrapper.destroy();
            }
         }
         catch (Exception ignored)
         {           
View Full Code Here

Examples of org.jboss.cache.pojo.PojoCache.stop()

     
      jbcm.stop();
     
      if (restartCache)
      {
         cache.stop();
         cache.destroy();
         caches.remove(cache);
        
         passDir = getPassivationDir(testCount, 1);
         jbcm = SessionTestUtil.createManager("test" + testCount, 5, true, passDir, false, false, null, caches);
View Full Code Here

Examples of org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper.stop()

      {
         try
         {
            if (wrapper != null)
            {
               wrapper.stop();
               wrapper.destroy();
            }
         }
         catch (Exception ignored)
         {           
View Full Code Here

Examples of org.jboss.cache.profiling.testinternals.TaskRunner.stop()

               cache.remove(f, "k");
            }
         });
      }

      exec.stop();

      long duration = System.currentTimeMillis() - startTime;
      log.warn("Finished warmup.  " + printDuration(duration));
      //cache.removeNode(Fqn.ROOT);
      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.