Examples of activateRegion()


Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

                                           boolean useMarshalling) throws Exception
   {
      TreeCacheMBean sender = createCache("sender", isolationLevel, replSync, useMarshalling, true);
     
      if (useMarshalling)
         sender.activateRegion("/");
     
      sender.put("/OK", "KEY", "X");
     
      return sender;    
   }
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

  
   public void testBuddyBackupInactivation() throws Exception
   {
      TreeCacheMBean cache1 = createCache("cache1", true, true, true);
     
      cache1.activateRegion("/a");
     
      Option option = new Option();
      option.setCacheModeLocal(true);
     
      Fqn fqn = new Fqn(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, "test");
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

  
   public void testPartialStateTransfer() throws Exception
   {
      TreeCacheMBean cache1 = createCache("cache1", false, true, false);
     
      cache1.activateRegion("/a");
     
      cache1.put("/a/b", "name", JOE);
      cache1.put("/a/b", "age", TWENTY);
      cache1.put("/a/c", "name", BOB);
      cache1.put("/a/c", "age", FORTY);
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

      assertNull("/a/b name transferred against policy", cache2.get("/a/b", "name"));
      assertNull("/a/b age transferred against policy", cache2.get("/a/b", "age"));
      assertNull("/a/c name transferred against policy", cache2.get("/a/c", "name"));
      assertNull("/a/c age transferred against policy", cache2.get("/a/c", "age"));
     
      cache2.activateRegion("/a/b");     

      assertEquals("Incorrect name for /a/b", JOE, cache2.get("/a/b", "name"));
      assertEquals("Incorrect age for /a/b", TWENTY, cache2.get("/a/b", "age"));
      assertNull("/a/c name transferred against policy", cache2.get("/a/c", "name"));
      assertNull("/a/c age transferred against policy", cache2.get("/a/c", "age"));
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

     
      cache1.put("/a/d", "name", JANE);
     
      assertNull("/a/d name transferred against policy", cache2.get("/a/d", "name"));
     
      cache2.activateRegion("/a/c");
     
      assertEquals("Incorrect name for /a/b", JOE, cache2.get("/a/b", "name"));
      assertEquals("Incorrect age for /a/b", TWENTY, cache2.get("/a/b", "age"));
      assertEquals("Incorrect name for /a/c", BOB, cache2.get("/a/c", "name"));
      assertEquals("Incorrect age for /a/c", FORTY, cache2.get("/a/c", "age"));
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

      assertEquals("Incorrect age for /a/b", TWENTY, cache2.get("/a/b", "age"));
      assertEquals("Incorrect name for /a/c", BOB, cache2.get("/a/c", "name"));
      assertEquals("Incorrect age for /a/c", FORTY, cache2.get("/a/c", "age"));
      assertNull("/a/d name transferred against policy", cache2.get("/a/d", "name"));
     
      cache2.activateRegion("/a/d");
     
      assertEquals("Incorrect name for /a/b", JOE, cache2.get("/a/b", "name"));
      assertEquals("Incorrect age for /a/b", TWENTY, cache2.get("/a/b", "age"));
      assertEquals("Incorrect name for /a/c", BOB, cache2.get("/a/c", "name"));
      assertEquals("Incorrect age for /a/c", FORTY, cache2.get("/a/c", "age"));
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

  
   public void testPartialStateTferWithLoader() throws Exception
   {
      TreeCacheMBean cache1 = createCache("cache1", false, true, true);
     
      cache1.activateRegion("/a");
     
      cache1.put("/a/b", "name", JOE);
      cache1.put("/a/b", "age", TWENTY);
      cache1.put("/a/c", "name", BOB);
      cache1.put("/a/c", "age", FORTY);
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

      assertNull("/a/b name transferred against policy", cache2.get("/a/b", "name"));
      assertNull("/a/b age transferred against policy", cache2.get("/a/b", "age"));
      assertNull("/a/c name transferred against policy", cache2.get("/a/c", "name"));
      assertNull("/a/c age transferred against policy", cache2.get("/a/c", "age"));
     
      cache2.activateRegion("/a/b");    

     
      Map ab = loader.get(A_B);
      assertNotNull("Loader transferred /a/b", ab);
      assertEquals("Incorrect name from loader for /a/b", JOE, ab.get("name"));
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

     
      cache1.put("/a/d", "name", JANE);
     
      assertNull("/a/d name transferred against policy", cache2.get("/a/d", "name"));
     
      cache2.activateRegion("/a/c");    
     
      ab = loader.get(A_B);
      assertNotNull("Loader still has /a/b", ab);
      assertEquals("Incorrect name from loader for /a/b", JOE, ab.get("name"));
      assertEquals("Incorrect age from loader for /a/b", TWENTY, ab.get("age"));
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.activateRegion()

      assertEquals("Incorrect age for /a/b", TWENTY, cache2.get("/a/b", "age"));
      assertEquals("Incorrect name for /a/c", BOB, cache2.get("/a/c", "name"));
      assertEquals("Incorrect age for /a/c", FORTY, cache2.get("/a/c", "age"));
      assertNull("/a/d name transferred against policy", cache2.get("/a/d", "name"));
     
      cache2.activateRegion("/a/d");        
     
      ab = loader.get(A_B);
      assertNotNull("Loader still has /a/b", ab);     
      assertEquals("Incorrect name from loader for /a/b", JOE, ab.get("name"));
      assertEquals("Incorrect age from loader for /a/b", TWENTY, ab.get("age"));
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.