Package org.jboss.cache

Examples of org.jboss.cache.TreeCache$TransactionLockStatus


      caches = null;
   }

   private TreeCache createCache() throws Exception
   {
      TreeCache c = new TreeCache();
      c.setCacheMode("REPL_SYNC");
      c.startService();
      return c;
   }
View Full Code Here


{
    private TreeCache[] caches;

    private TreeCache createCache(boolean optimistic) throws Exception
    {
        TreeCache cache = new TreeCache();
        cache.setCacheMode(TreeCache.REPL_SYNC);
        if (optimistic) cache.setNodeLockingScheme("OPTIMISTIC");
        cache.setClusterName("InvocationContextCleanupTest");
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.setLockAcquisitionTimeout(2000);
        cache.startService();
        return cache;
    }
View Full Code Here

      return mgr.getTransaction();
   }

   void initCaches(int caching_mode) throws Exception {
      this.caching_mode=caching_mode;
      cache1=new TreeCache();
      cache2=new TreeCache();
      cache1.setCacheMode(caching_mode);
      cache2.setCacheMode(caching_mode);
      cache1.setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache2.setIsolationLevel(IsolationLevel.SERIALIZABLE);
View Full Code Here

      return tx;
   }

   void initCaches(int caching_mode) throws Exception {
      this.caching_mode=caching_mode;
      cache1=new TreeCache();
      cache2=new TreeCache();
      cache1.setCacheMode(caching_mode);
      cache2.setCacheMode(caching_mode);
      cache1.setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache2.setIsolationLevel(IsolationLevel.SERIALIZABLE);
View Full Code Here

   private TransactionManager tm;
   private Fqn fqn = Fqn.fromString("/test");

   protected void setUp() throws Exception
   {
      cache = new TreeCache();

      cache.setTransactionManagerLookupClass("org.jboss.cache.transaction.AsyncRollbackTransactionManagerLookup");
      cache.startService();
      tm = cache.getTransactionManager();
      tm.setTransactionTimeout(2);
View Full Code Here

        super.setUp();
        mcl_exception = null;
        m_contextFactory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
        System.setProperty(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FACTORY);
        DummyTransactionManager.getInstance();
        m_cache = new TreeCache();
        PropertyConfigurator config = new PropertyConfigurator();
        config.configure(m_cache, "META-INF/replSync-service.xml");
        m_cache.setTransactionManagerLookupClass(
                "org.jboss.cache.DummyTransactionManagerLookup");
    }
View Full Code Here

public class PrepareTxTest extends TestCase {
   TreeCache cache;

   protected void setUp() throws Exception {
      super.setUp();
      cache=new TreeCache();
      cache.setCacheMode("local");
      cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      cache.createService();
      cache.startService();
   }
View Full Code Here

*/
public class LocalDelegatingCacheLoaderTest extends CacheLoaderTestsBase {
   TreeCache delegating_cache;

    protected void configureCache() throws Exception {
      delegating_cache=new TreeCache();
      delegating_cache.setCacheMode(TreeCache.LOCAL);
      delegating_cache.createService();
      delegating_cache.startService();
       
      // configure first ...
View Full Code Here

   private TreeCache cache;
   private TransactionManager tm;

   protected void setUp() throws Exception
   {
      cache = new TreeCache();
      cache.setTransactionManagerLookupClass(HeuristicFailingDummyTransactionManagerLookup.class.getName());
      cache.startService();
      tm = cache.getTransactionManager();
   }
View Full Code Here

   protected void setUp() throws Exception
   {
      super.setUp();
      log.debug("Testing " + getName());
      log.debug("");
      cache=new TreeCache();
      cache.setCacheMode("local");
      configureCache();
      cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      cache.setIsolationLevel(IsolationLevel.SERIALIZABLE);
      listener = new CacheListener();
View Full Code Here

TOP

Related Classes of org.jboss.cache.TreeCache$TransactionLockStatus

Copyright © 2018 www.massapicom. 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.