org.openstreetmap.osmosis.extract.apidb.v0_6
Class DatabaseTimeLoader

java.lang.Object
  extended by org.openstreetmap.osmosis.extract.apidb.v0_6.DatabaseTimeLoader

public class DatabaseTimeLoader
extends java.lang.Object

Loads the current time from the database. This avoids relying on the clock of this system which may be different. If this system was to skew ahead of the database server it may be possible for data to be missed during extraction operations.

Author:
Brett Henderson

Constructor Summary
DatabaseTimeLoader(DatabaseLoginCredentials loginCredentials)
          Creates a new instance.
 
Method Summary
 java.util.Date getDatabaseTime()
          Gets the current system time according to the database server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTimeLoader

public DatabaseTimeLoader(DatabaseLoginCredentials loginCredentials)
Creates a new instance.

Parameters:
loginCredentials - Contains all information required to connect to the database.
Method Detail

getDatabaseTime

public java.util.Date getDatabaseTime()
Gets the current system time according to the database server.

Returns:
The current system time.