Examples of NodeAnswer


Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      StatefulSession statefulSession =
         (StatefulSession)statefulSessionHome.create("Bupple-Dupple");
      assertTrue("statefulSessionHome.create() != null", statefulSession != null);
      getLog().debug("ok");
     
      NodeAnswer node1 = statefulSession.getNodeState ();
      getLog ().debug (node1);
     
      // Reconfigure the cluster so the existing targets are invalid
      // BES -- don't bother; we test that functionality in testRetryInterceptor
      // just confirm that reestablishing the targets works
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

  
   // Remote Interface implementation ----------------------------------------------
  
   public NodeAnswer getNodeState() throws RemoteException
   {
      NodeAnswer state = new NodeAnswer(this.myId, this.name);
      log.debug("getNodeState, " + state);
      return state;
   }
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      catch(Exception e)
      {
         log.debug("failed", e);
      }
      log.debug("Exit accessEntity()");
      return new NodeAnswer(nodeID, new Integer(beanCount));
   }
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      catch(Exception e)
      {
         log.error("Failed to validate EntityPK", e);
         throw new RemoteException("Failed to validate EntityPK");
      }
      return new NodeAnswer(nodeID, new Integer(beanCount));
   }
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      protected void executeTest() throws Throwable
      {
         // Test that the SFSB still works
        
         System.setProperty ("JBossCluster-DoFail", "once");
         NodeAnswer node2 = sfsb.getNodeState ();     
         log.debug (node2);
        
         assertTrue ("StatefulSession: Failover has occured",
                     !node1.nodeId.equals(node2.nodeId));
        
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

     
      protected void executeTest() throws Throwable
      {
         // Test that the SFSB still works
         System.setProperty ("JBossCluster-DoFail", "once");
         NodeAnswer node2 = sfsb.getNodeState ();     
         log.debug (node2);
        
         assertTrue ("StatefulSession: Failover has occured", node2 != null);
        
         log.debug("StatefulSession: Retry successful");
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      log.debug("Calling create on StatefulSessionHome...");
      StatefulSession statefulSession =
      (StatefulSession)homeHA.create("Bupple-Dupple");
      assertTrue("statefulSessionHome.create() != null", statefulSession != null);

      NodeAnswer node1 = statefulSession.getNodeState ();
      getLog ().debug (node1);

      // Now we switch to the other node, simulating a failure on node 1
      System.setProperty ("JBossCluster-DoFail", "once");
      NodeAnswer node2 = statefulSession.getNodeState ();
      log.debug (node2);
      assertEquals("Value is identical on replicated node1", "Bupple-Dupple", node1.answer);
      assertEquals("Value is identical on replicated node2", "Bupple-Dupple", node2.answer);

      // we change our name to see if it replicates to node 1
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.NodeAnswer

      StatefulSession statefulSession =
         (StatefulSession)statefulSessionHome.create("Bupple-Dupple");
      assertTrue("statefulSessionHome.create() != null", statefulSession != null);
      getLog().debug("ok");
     
      NodeAnswer node1 = statefulSession.getNodeState ();
      getLog ().debug (node1);
     
      // Now we switch to the other node, simulating a failure on node 1
      //
      System.setProperty ("JBossCluster-DoFail", "once");
      NodeAnswer node2 = statefulSession.getNodeState ();     
      getLog ().debug (node2);
     
      assertTrue ("Failover has occured", !node1.nodeId.equals (node2.nodeId));
     
      assertTrue ("Value is identical on replicated node",
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.clusteredsession.NodeAnswer

      catch (NameNotFoundException nnfe)
      {
         fail(nnfe.getMessage());
      }

      NodeAnswer node1 = stateful.getNodeState ();
      getLog ().debug ("Node 1 ID: " +node1);

      // Now we switch to the other node, simulating a failure on node 1
      //
      stateful.setUpFailover("once");
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.clusteredsession.NodeAnswer

      catch (NameNotFoundException nnfe)
      {
         fail(nnfe.getMessage());
      }
     
      NodeAnswer node1 = stateless.getNodeState();
      assertNotNull(node1);
      getLog ().debug ("Node 1 ID: " +node1);
     
      for (int i = 0; i < 20; i++)
      {
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.