Examples of BuddyFqnTransformer


Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

   {
      Fqn<String> fqn = Fqn.fromElements(FqnUtil.JSESSION, contextHostName, sessionId);
      Map<Object, Object> owned = owner.getData(fqn);
      assert owned != null : "owned is null";
     
      Fqn bFqn = new BuddyFqnTransformer().getBackupFqn(owner.getLocalAddress(), fqn);
      Map<Object, Object> backed = owner.getData(fqn);
      assert backed != null : "backed is null";
     
      assert owned.size() == backed.size() : "sizes differ; owned = " + owned.size() + " backed = " + backed.size();
     
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

   {
      control = createStrictControl();
      containerMock = control.createMock(DataContainer.class);
      spiMock = control.createMock(CacheSPI.class);
      command = new LegacyGravitateDataCommand(fqn, true, new IpAddress());
      command.initialize(containerMock, spiMock, new BuddyFqnTransformer());
      ctx = new LegacyInvocationContext(containerMock);
   }
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

   {
      control = createStrictControl();
      containerMock = control.createMock(DataContainer.class);
      spiMock = control.createMock(CacheSPI.class);
      command = new LegacyGravitateDataCommand(fqn, true, new IpAddress());
      command.initialize(containerMock, spiMock, new BuddyFqnTransformer());
      ctx = new LegacyInvocationContext(containerMock);
   }
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

   public void setUp()
   {
      nodes = new MockNodesFixture();
      container = new DataContainerImpl();
      container.setRoot(nodes.root);
      container.setBuddyFqnTransformer(new BuddyFqnTransformer());
   }
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

      cache2.start();

      // Pause to give caches time to see each other
      TestingUtil.blockUntilViewsReceived(60000, cache1, cache2);

      BuddyFqnTransformer fqnTransformer = new BuddyFqnTransformer();
      // now peek into cache 2 to check that this state has been transferred into the backup subtree
      Fqn test = fqnTransformer.getBackupFqn(cache1.getLocalAddress(), A_B);
      assertEquals("/a/b state should have integrated in backup region " + test, JOE, cache2.get(test, "name"));

      test = fqnTransformer.getBackupFqn(cache1.getLocalAddress(), A_C);
      assertEquals("/a/c state should have integrated in backup region " + test, JANE, cache2.get(test, "name"));
   }
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

   public void setUp()
   {
      nodes = new MockNodesFixture();
      container = new DataContainerImpl();
      container.setRoot(nodes.root);
      container.setBuddyFqnTransformer(new BuddyFqnTransformer());
   }
View Full Code Here

Examples of org.jboss.cache.buddyreplication.BuddyFqnTransformer

      CacheSPI<Object, Object> cache2 = createCacheWithBr("testBuddyIntegration_2");

      // Pause to give caches time to see each other
      BuddyReplicationTestsBase.waitForSingleBuddy(cache1, cache2);

      BuddyFqnTransformer fqnTransformer = new BuddyFqnTransformer();
      // now peek into cache 2 to check that this state has been transferred into the backup subtree
      Fqn test = fqnTransformer.getBackupFqn(cache1.getLocalAddress(), A_B);
      assertEquals("/a/b state should have integrated in backup region " + test, JOE, cache2.get(test, "name"));

      test = fqnTransformer.getBackupFqn(cache1.getLocalAddress(), A_C);
      assertEquals("/a/c state should have integrated in backup region " + test, JANE, cache2.get(test, "name"));
   }
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.