Package org.jboss.cache.buddyreplication

Examples of org.jboss.cache.buddyreplication.BuddyGroup


   }

   public void testNotifyBuddyGroupChange()
   {
      assert allEventsListener.buddyGroupChangedEvent == null;
      BuddyGroup buddyGroup = new BuddyGroup();
      notifier.notifyBuddyGroupChange(buddyGroup, true);
      assert allEventsListener.buddyGroupChangedEvent != null;
      assert allEventsListener.buddyGroupChangedEvent.getBuddyGroup().equals(buddyGroup);
      assert allEventsListener.buddyGroupChangedEvent.getType() == Event.Type.BUDDY_GROUP_CHANGED;
   }
View Full Code Here


   }

   public void testNotifyBuddyGroupChange()
   {
      assert allEventsListener.buddyGroupChangedEvent == null;
      BuddyGroup buddyGroup = new BuddyGroup();
      notifier.notifyBuddyGroupChange(buddyGroup, true);
      assert allEventsListener.buddyGroupChangedEvent != null;
      assert allEventsListener.buddyGroupChangedEvent.getBuddyGroup().equals(buddyGroup);
      assert allEventsListener.buddyGroupChangedEvent.getType() == Event.Type.BUDDY_GROUP_CHANGED;
   }
View Full Code Here

      public void buddyChanged(BuddyGroupChangedEvent e)
      {
         System.out.println("Received event " + e);
         if (!e.isPre())
         {
            BuddyGroup bg = e.getBuddyGroup();

            boolean passed = bg.getDataOwner().equals(caches[1].getLocalAddress()) &&
                  bg.getBuddies().size() == 1 &&
                  bg.getBuddies().contains(caches[(numActiveCaches == 3) ? 2 : 0].getLocalAddress());

            notificationsReceived = notificationsReceived && passed;

            if (stage2)
               latch2.countDown();
View Full Code Here

      public void buddyChanged(BuddyGroupChangedEvent e)
      {
         System.out.println("Received event " + e);
         if (!e.isPre())
         {
            BuddyGroup bg = e.getBuddyGroup();

            boolean passed = bg.getDataOwner().equals(caches[1].getLocalAddress()) &&
                  bg.getBuddies().size() == 1 &&
                  bg.getBuddies().contains(caches[(numActiveCaches == 3) ? 2 : 0].getLocalAddress());

            notificationsReceived = notificationsReceived && passed;

            if (stage2)
               latch2.countDown();
View Full Code Here

TOP

Related Classes of org.jboss.cache.buddyreplication.BuddyGroup

Copyright © 2018 www.massapicom. 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.