Examples of Replicator


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

      // 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

Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator

   *
   * @param dbCtx
   *            Used to access the database.
   */
    protected void runImpl(DatabaseContext2 dbCtx) {
    Replicator replicator;
    ReplicationSource source;
    TransactionManager txnSnapshotLoader;
    SystemTimeLoader systemTimeLoader;
   
    new SchemaVersionValidator(loginCredentials, preferences)
        .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
   
    source = new AllEntityDao(dbCtx.getJdbcTemplate());
    txnSnapshotLoader = new TransactionDao(dbCtx);
    systemTimeLoader = new TimeDao(dbCtx.getJdbcTemplate());
   
    replicator = new Replicator(source, changeSink, txnSnapshotLoader, systemTimeLoader, iterations, minInterval,
        maxInterval);
   
    replicator.replicate();
    }
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.