Package org.jboss.cache

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


            cache.setSyncRollbackPhase(true);
        }
        cache.setNodeLockingScheme("OPTIMISTIC");
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.createService();
        cache.startService();

        return cache;
    }

    protected TreeCache createReplicatedCacheWithLoader(boolean shared, int cacheMode) throws Exception
View Full Code Here


        cache.setNodeLockingScheme("OPTIMISTIC");
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.setCacheLoaderConfiguration(getCacheLoaderConfig(shared, shared ? getTempDir(name + "-shared") : getTempDir(name + instanceNumber++), false));

        cache.createService();
        cache.startService();
        return cache;
    }

    protected Random random;
View Full Code Here

     
      cache1.startService();
     
      cache1.put("/a/b/c", "key", "value");
     
      cache2.startService();
     
      RegionManager erm = cache2.getEvictionRegionManager();
      Region region = erm.getRegion(Fqn.ROOT);
      // We expect events for /a, /a/b and /a/b/c
      assertEquals("Saw the expected number of node events", 3, region.nodeEventQueueSize());
View Full Code Here

      {
         cache1.put("/base/" + i, "key", "base" + i);
         if (i < 5)
             cache1.put("/org/jboss/test/data/" + i, "key", "data" + i);
      }
      cache2.startService();
      Set children = cache2.getChildrenNames("/base");
      assertNotNull("Base children transferred", children);
      assertTrue("Minimum number of base children transferred", children.size() >= 5000);
     
      // Sleep 2.5 secs so the nodes we are about to create in data won't
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.