Package org.jboss.messaging.core.plugin.contract

Examples of org.jboss.messaging.core.plugin.contract.Replicator


         // a bit messy but we have a circular dependency POJOContainer should be able to help us
         // here. Yes, this is nasty.

         if (!postOffice.isLocal())
         {
            Replicator rep = (Replicator)postOffice;
            connFactoryJNDIMapper.injectReplicator(rep);           
            rep.registerListener(new FailoverListener());
         }
        
         // Also need to inject into txRepository
         txRepository.injectPostOffice(postOffice);
      }
View Full Code Here


      // This node may be failing over for another node - in which case we must wait for that to be
      // complete.
     
      log.debug(this + " waiting for server-side failover for failed node " + failedNodeID + " to complete");
     
      Replicator replicator = getReplicator();

      long startToWait = getFailoverStartTimeout();
      long completeToWait = getFailoverCompleteTimeout();
                    
      // Must lock here
      synchronized (failoverStatusLock)
      {        
         while (true)
         {        
            //TODO we shouldn't have a dependency on DefaultClusteredPostOffice - where should we put the constants?

            Map replicants = replicator.get(DefaultClusteredPostOffice.FAILED_OVER_FOR_KEY);
           
            boolean foundEntry = false;
                       
            if (replicants != null)
            {
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.plugin.contract.Replicator

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.