org.openstreetmap.osmosis.core.apidb.v0_6
Class ApidbFileReplicator

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.ApidbFileReplicator
All Implemented Interfaces:
java.lang.Runnable, RunnableTask, Task

public class ApidbFileReplicator
extends java.lang.Object
implements RunnableTask

Performs replication from an API database into change files.


Constructor Summary
ApidbFileReplicator(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, java.io.File workingDirectory)
          Creates a new instance.
 
Method Summary
 void run()
          
protected  void runImpl(DatabaseContext2 dbCtx)
          Runs the task implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApidbFileReplicator

public ApidbFileReplicator(DatabaseLoginCredentials loginCredentials,
                           DatabasePreferences preferences,
                           java.io.File workingDirectory)
Creates a new instance.

Parameters:
loginCredentials - Contains all information required to connect to the database.
preferences - Contains preferences configuring database behaviour.
workingDirectory - The directory to store all output files.
Method Detail

runImpl

protected void runImpl(DatabaseContext2 dbCtx)
Runs the task implementation. This is called by the run method within a transaction.

Parameters:
dbCtx - Used to access the database.

run

public void run()

Specified by:
run in interface java.lang.Runnable