Examples of BuddyReplicationConfig


Examples of org.jboss.cache.config.BuddyReplicationConfig

   }

   @Test(enabled = false)
   public void testReplSyncBR() throws Exception
   {
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      cache.getConfiguration().setBuddyReplicationConfig(brc);
      testReplSync();
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

   }

   @Test(enabled = false)
   public void testReplAsyncBR() throws Exception
   {
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      cache.getConfiguration().setBuddyReplicationConfig(brc);
      cache.getConfiguration().setNodeLockingScheme(Configuration.NodeLockingScheme.MVCC);
      cache.getConfiguration().setConcurrencyLevel(500);
      cache.getConfiguration().setIsolationLevel(IsolationLevel.READ_COMMITTED);
//      cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

   }

   @Test(enabled = false)
   public void testReplSyncOptBR() throws Exception
   {
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      cache.getConfiguration().setBuddyReplicationConfig(brc);
      testReplSyncOptimistic();
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

   }

   @Test(enabled = false)
   public void testReplAsyncOptBR() throws Exception
   {
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      cache.getConfiguration().setBuddyReplicationConfig(brc);
      testReplAsyncOptimistic();
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

   public void setUp() throws CloneNotSupportedException
   {
      CacheFactory cf = new UnitTestCacheFactory<Object, Object>();
      Configuration conf = new Configuration();
      conf.setCacheMode(Configuration.CacheMode.REPL_SYNC);
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      conf.setBuddyReplicationConfig(brc);
     
      c1 = cf.createCache(conf, false);
      c2 = cf.createCache(conf.clone(), false);
      c3 = cf.createCache(conf.clone(), false);
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

      this.batchingManager = new BatchingManagerImpl(tm);
     
      Object[] objs = new Object[]{SESSION, combinedPath_};
      Fqn pathFqn = Fqn.fromList(Arrays.asList(objs), true);
     
      BuddyReplicationConfig brc = plainCache_.getConfiguration().getBuddyReplicationConfig();
      this.useBuddyReplication_ = brc != null && brc.isEnabled();
      if (useTreeCacheMarshalling_ || this.useBuddyReplication_)
      {
         // JBAS-5628/JBAS-5629 -- clean out persistent store
         cleanWebappRegion(pathFqn);
      }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

         {
            log_.error("Exception during inactivation of webapp region " + pathFqn +
                       " or un-registration of its class loader", e);
         }
      }
      BuddyReplicationConfig brc = plainCache_.getConfiguration().getBuddyReplicationConfig();
      this.useBuddyReplication_ = brc != null && brc.isEnabled();
      if (useTreeCacheMarshalling_ || this.useBuddyReplication_)
      {
         // JBAS-5628/JBAS-5629 -- clean out persistent store
         cleanWebappRegion(pathFqn);
      }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

         ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
         iclcs.add(fclc);
         clc.setIndividualCacheLoaderConfigs(iclcs);
      }
     
      BuddyReplicationConfig brc = config.getBuddyReplicationConfig();
      brc.setEnabled(!local && !totalReplication);
     
      config.setUseRegionBasedMarshalling(marshalling);
      config.setInactiveOnStartup(marshalling);   
     
      // No async marshalling or notifications
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

      return cache;
   }

   private BuddyReplicationConfig getBuddyConfig() throws Exception
   {
      BuddyReplicationConfig brc = new BuddyReplicationConfig();
      brc.setEnabled(true);
      brc.setAutoDataGravitation(false);
      return brc;
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig

                  "         <properties>\n" +
                  "            numBuddies = 3\n" +
                  "         </properties>\n" +
                  "      </locator>\n" +
                  "   </buddy>";
      BuddyReplicationConfig config = getBuddyReplicationConfig(xmlConfig);
      BuddyManager mgr = new BuddyManager(config);

      assertTrue(mgr.isEnabled());
      assertEquals("groupOne", mgr.getBuddyPoolName());
      assertEquals(NextMemberBuddyLocator.class, mgr.buddyLocator.getClass());
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.