Examples of startService()


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

    public void testConcurrentReadsLocal() throws Exception
    {
        TreeCache cache = createCacheUnstarted();
        cache.setCacheMode("INVALIDATION_ASYNC");
        cache.startService();
       
        Processor[] processors = new Processor[NUM_THREADS];
        for (int i=0; i<NUM_THREADS; i++)
        {
            processors[i] = new Processor(cache, "Processor-" + i);
View Full Code Here

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

        TreeCache cache1 = createUnstartedCache( false );
        TreeCache cache2 = createUnstartedCache( false );
        cache1.setCacheMode(TreeCache.INVALIDATION_ASYNC);
        cache2.setCacheMode(TreeCache.INVALIDATION_ASYNC);
        cache1.startService();
        cache2.startService();

        Fqn fqn = Fqn.fromString("/a/b");
        cache1.put(fqn, "key", "value");
        TestingUtil.sleepThread(500)// give it time to broadcast the evict call
        // test that this has NOT replicated, but rather has been invalidated:
View Full Code Here

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

    public void testBlockingProblem() throws Exception {

        TreeCache cache = new TreeCache();
        cache.setCacheLoader(new TestSlowCacheLoader());
        cache.startService();

        long begin = System.currentTimeMillis();
        Collection threads = new ArrayList();

        /*
 
View Full Code Here

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

      TreeCache c=new TreeCache("test", null, 10000);
      c.setTransactionManagerLookupClass("org.jboss.cache.JBossTransactionManagerLookup");
      c.setLockAcquisitionTimeout(500);
      c.setIsolationLevel(level);
      c.createService();
      c.startService();
      return c;
   }


View Full Code Here

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

      TreeCache c=new TreeCache("test", null, 10000);
      c.setTransactionManagerLookupClass("org.jboss.cache.JBossTransactionManagerLookup");
      c.setLockAcquisitionTimeout(500);
      c.setIsolationLevel(level);
      c.createService();
      c.startService();
      return c;
   }


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

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

      TreeCache c=new TreeCache();
      c.setCacheMode(mode);
      c.setIsolationLevel(level);
      c.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      c.createService();
      c.startService();
      return c;
   }

   Transaction startTransaction() {
      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
View Full Code Here

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

       final int threads = 10, loops = 100;
       TreeCache cache = null;
       try
       {
          cache = new TreeCache();
          cache.startService();
          final DataNode root = cache.getRoot();
          final List exceptions = new ArrayList();
          final List timeouts = new ArrayList();

View Full Code Here

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

       final int threads = 10, loops = 100;
       TreeCache cache = null;
       try
       {
          cache = new TreeCache();
          cache.startService();
          cache.put("/test/node", null);
          final DataNode node = cache.get("/test/node");
          final List exceptions = new ArrayList();
          final List timeouts = new ArrayList();
View Full Code Here

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

      TreeCacheMBean tree=new TreeCache();
      PropertyConfigurator config=new PropertyConfigurator();
      config.configure(tree, "META-INF/replSync-service.xml");
     
      tree.createService();
      tree.startService();
     
      caches.put(cacheID, tree);
     
      return tree;
   }
View Full Code Here

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

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

   public void testMCastReplication() 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.