org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class Replicator

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.Replicator

public class Replicator
extends java.lang.Object

Replicates changes from the database utilising transaction snapshots.


Constructor Summary
Replicator(ReplicationSource source, ReplicationDestination destination, TransactionSnapshotLoader snapshotLoader, SystemTimeLoader systemTimeLoader)
          Creates a new instance.
 
Method Summary
 void replicate()
          Replicates the next set of changes from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replicator

public Replicator(ReplicationSource source,
                  ReplicationDestination destination,
                  TransactionSnapshotLoader snapshotLoader,
                  SystemTimeLoader systemTimeLoader)
Creates a new instance.

Parameters:
source - The source for all replication changes.
destination - The destination for all replicated changes.
snapshotLoader - Loads transaction snapshots from the database.
systemTimeLoader - Loads the current system time from the database.
Method Detail

replicate

public void replicate()
Replicates the next set of changes from the database.