Examples of failover()


Examples of org.apache.qpid.client.protocol.AMQProtocolSession.failover()

            port = Integer.parseInt(host.substring(portIndex + 1));
            host = host.substring(0, portIndex);

        }

        session.failover(host, port);
    }

}
View Full Code Here

Examples of org.gridgain.grid.spi.failover.always.GridAlwaysFailoverSpi.failover()

        GridNode node = new GridTestNode(UUID.randomUUID());

        nodes.add(node);

        node = spi.failover(new GridFailoverTestContext(new GridTestTaskSession(), new GridTestJobResult(node)), nodes);

        assert node == null;
    }

    /**
 
View Full Code Here

Examples of org.gridgain.grid.spi.failover.always.GridAlwaysFailoverSpi.failover()

        nodes.add(new GridTestNode(UUID.randomUUID()));
        nodes.add(new GridTestNode(UUID.randomUUID()));

        GridComputeJobResult jobRes = new GridTestJobResult(nodes.get(0));

        GridNode node = spi.failover(new GridFailoverTestContext(new GridTestTaskSession(), jobRes), nodes);

        assert node != null;
        assert node.equals(nodes.get(1));

        checkFailedNodes(jobRes, 1);
View Full Code Here

Examples of org.gridgain.grid.spi.failover.always.GridAlwaysFailoverSpi.failover()

        nodes.add(new GridTestNode(UUID.randomUUID()));

        GridComputeJobResult jobRes = new GridTestJobResult(nodes.get(0));

        // First attempt.
        GridNode node = spi.failover(new GridFailoverTestContext(new GridTestTaskSession(), jobRes), nodes);

        assert node != null;
        assert node.equals(nodes.get(1));

        checkFailedNodes(jobRes, 1);
View Full Code Here

Examples of org.gridgain.grid.spi.failover.always.GridAlwaysFailoverSpi.failover()

        assert node.equals(nodes.get(1));

        checkFailedNodes(jobRes, 1);

        // Second attempt (exceeds default max attempts of 1).
        node = spi.failover(new GridFailoverTestContext(new GridTestTaskSession(), jobRes), nodes);

        assert node == null;

        checkFailedNodes(jobRes, 1);
    }
View Full Code Here

Examples of org.jboss.seam.jmx.JBossClusterMonitor.failover()

   }
  
   public void sessionDestroyed(HttpSessionEvent event)
   {
      JBossClusterMonitor monitor = JBossClusterMonitor.getInstance(event.getSession().getServletContext());
      if (monitor != null && monitor.failover())
      {
         // If application is unfarmed or all nodes shutdown simultaneously, cluster cache may still fail to retrieve SFSBs to destroy
         log.info("Detected fail-over, not destroying session context");
      }
      else
View Full Code Here

Examples of org.jboss.seam.jmx.JBossClusterMonitor.failover()

   }
  
   public void sessionDestroyed(HttpSessionEvent event)
   {
      JBossClusterMonitor monitor = JBossClusterMonitor.getInstance(event.getSession().getServletContext());
      if (monitor != null && monitor.failover())
      {
         // If application is unfarmed or all nodes shutdown simultaneously, cluster cache may still fail to retrieve SFSBs to destroy
         log.debug("Detected fail-over, not destroying session context");
      }
      else
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.