Package org.jboss.messaging.core.plugin.postoffice.cluster

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.FailoverStatus


            {
               for(Iterator i = replicants.entrySet().iterator(); i.hasNext(); )
               {
                  Map.Entry entry = (Map.Entry)i.next();
                  Integer nid = (Integer)entry.getKey();
                  FailoverStatus status = (FailoverStatus)entry.getValue();
                 
                  if (status.isFailedOverForNode(failedNodeID))
                  {
                     log.debug(this + ": failover is complete on node " + nid);
                     return nid.intValue();
                  }
                  else if (status.isFailingOverForNode(failedNodeID))
                  {
                     log.debug(this + ": fail over is in progress on node " + nid);
                    
                     // A server has started failing over for the failed node, but not completed.
                     // If it's not this node then we immediately return so the connection can be
View Full Code Here


      {
         if (key.equals(DefaultClusteredPostOffice.FAILED_OVER_FOR_KEY))
         {
            if (updatedReplicantMap != null && originatingNodeId == serverPeerID)
            {
               FailoverStatus status =
                  (FailoverStatus)updatedReplicantMap.get(new Integer(serverPeerID));
              
               if (status != null && status.isFailedOver())
               {                    
                  // We prompt txRepository to load any prepared txs - so we can take over
                  // responsibility for in doubt transactions from other nodes
                  try
                  {
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.plugin.postoffice.cluster.FailoverStatus

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.