Package org.jboss.cache

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


        return cache;
    }
    protected TreeCache createCache(boolean optimistic) throws Exception
    {
        TreeCache cache = createUnstartedCache(optimistic);
        cache.startService();
        return cache;
    }

    protected TreeCache[] createCachesWithSharedCL(boolean optimistic) throws Exception
    {
View Full Code Here


   {
      TreeCache c = new TreeCache();
      c.setCacheMode(TreeCache.INVALIDATION_SYNC); // only use sync.
      c.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      c.setNodeLockingScheme("OPTIMISTIC");
      c.startService();
      return c;
   }

   protected void tearDown() throws Exception
   {
View Full Code Here

      config.configure(tree, "META-INF/replAsync-service.xml"); // read in generic replAsync xml
      tree.setClusterName(name);
      // Use marshaller
      tree.setUseRegionBasedMarshalling(true);
      tree.createService();
      tree.startService();
      return tree;
   }

   public void tearDown() throws Exception {
      super.tearDown();
View Full Code Here

      configureMultiplexer(c);

      if (start)
      {
         c.createService();
         c.startService();
         validateMultiplexer(c);
      }

      return c;
   }
View Full Code Here

              "</cacheloader>\n" +
              "</config>";

      cache.setCacheLoaderConfiguration(XmlHelper.stringToElement(cloader));
      if (start)
         cache.startService();

      return cache;
   }

   protected TreeCache[] createCaches(int numBuddies, int numCaches, boolean useBuddyPool) throws Exception
View Full Code Here

      TreeCache cache = new TreeCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
      cache.setUseInterceptorMbeans(true);
      cache.createService();
      cache.startService();
      return cache;
   }
  
   private ActivationInterceptor getActivationInterceptor(TreeCache cache)
   {
View Full Code Here

      TreeCache cache = new TreeCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
      cache.setUseInterceptorMbeans(true);
      cache.createService();
      cache.startService();
      return cache;
   }
  
   private CacheLoaderInterceptor getCacheLoaderInterceptor(TreeCache cache)
   {
View Full Code Here

      config.configure(tree, "META-INF/replSync-service.xml"); // read in generic replAsync xml
      tree.setClusterName(name);
      // Use marshaller
      tree.setUseRegionBasedMarshalling(true);
      tree.createService();
      tree.startService();
      return tree;
   }

   public void tearDown() throws Exception {
      super.tearDown();
View Full Code Here

      config.configure(cache, "META-INF/invalidationSync-service.xml");
      cache.setCacheMode(TreeCache.INVALIDATION_SYNC);
      cache.setUseInterceptorMbeans(true);
      cache.setClusterName(clusterName);
      cache.createService();
      cache.startService();
      return cache;
   }
  
   private InvalidationInterceptor getInvalidationInterceptor(TreeCache cache)
   {
View Full Code Here

      PropertyConfigurator config = new PropertyConfigurator();
      config.configure(cache, "META-INF/local-passivation-service.xml"); // read in generic local xml
      cache.setCacheMode("REPL_SYNC");
      cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      cache.setCacheLoaderConfiguration(getSingleCacheLoaderConfig(true, "/", DummyInMemoryCacheLoader.class.getName(), null, false, true, false, false));
      cache.startService();
      return cache;
   }
  
   public void tearDown() throws Exception
   {
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.