Examples of updateClusterInfo()


Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

         count--;
      }
      assertEquals("Correct count", -1, count);
     
      // Check the lists returned by other methods
      fciTargets = fci.updateClusterInfo(targets, 0);

      try
      {
         fciTargets.add("FAIL");
         fail("add call did not fail");
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

         count--;
      }
      assertEquals("Correct count", -1, count);
     
      // Check the lists returned by other methods
      fciTargets = fci.updateClusterInfo(targets, 0);

      try
      {
         fciTargets.add("FAIL");
         fail("add call did not fail");
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

   {
      FamilyClusterInfo fci = ClusteringTargetsRepository.initTarget("testSynchronization", new ArrayList(), 0);
      fci.setCursor(1);
      assertEquals(1, fci.getCursor());
     
      fci.updateClusterInfo(Arrays.asList(new String[]{"A", "B"}), 1);
      assertEquals(1, fci.getCursor());
     
      fci.removeDeadTarget("B");
      assertEquals(1, fci.getCursor());
     
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

     
      FamilyClusterInfo fci = ClusteringTargetsRepository.initTarget("testSynchronization", new ArrayList(), 0);
      fci.setObject(ONE);
      assertSame(ONE, fci.getObject());
     
      fci.updateClusterInfo(Arrays.asList(new String[]{"A", "B"}), 1);
      assertSame(ONE, fci.getObject());
     
      fci.removeDeadTarget("B");
      assertSame(ONE, fci.getObject());
     
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

      String target = (String) lbp.chooseTarget(fci);
      int cursor = fci.getCursor();
      assertEquals(target, fci.getTargets().get(cursor));
     
      targets = Arrays.asList(new String[]{"W", "X", "Y", "Z"});
      fci.updateClusterInfo(targets, 1);
     
      int expectedCursor = ++cursor % targets.size();
     
      target = (String) lbp.chooseTarget(fci);
      cursor = fci.getCursor();
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

     
      String target = (String) lbp.chooseTarget(fci);
      assertTrue(targets.contains(target));
     
      targets = Arrays.asList(new String[]{"W", "X", "Y", "Z"});
      fci.updateClusterInfo(targets, 1);
     
      target = (String) lbp.chooseTarget(fci);
      assertTrue(targets.contains(target));
   }
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.FamilyClusterInfo.updateClusterInfo()

     
      assertTrue(targets.contains(target));
     
      targets = Arrays.asList(new String[]{(String) target, "X", "Y"});
     
      fci.updateClusterInfo(targets, 1);
     
      for (int i = 0; i < 5; i++)
         assertEquals(target, lbp.chooseTarget(fci));
   }
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.HARMIClient.updateClusterInfo()

            {
               trash.add (ref);
            }
            else
            {
               proxy.updateClusterInfo (this.replicants, this.clusterViewId);
            }
         }

         if (trash.size () > 0)
            generatedProxies.removeAll(trash);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.HARMIClient.updateClusterInfo()

            {
               trash.add (ref);
            }
            else
            {
               proxy.updateClusterInfo (this.replicants, this.clusterViewId);
            }
         }

         if (trash.size () > 0)
            generatedProxies.removeAll (trash);
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.