Class DatabaseTimeLoader

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

public class DatabaseTimeLoader extends 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.
  • Constructor Details

    • DatabaseTimeLoader

      public DatabaseTimeLoader(org.openstreetmap.osmosis.core.database.DatabaseLoginCredentials loginCredentials)
      Creates a new instance.
      Parameters:
      loginCredentials - Contains all information required to connect to the database.
  • Method Details

    • getDatabaseTime

      public Date getDatabaseTime()
      Gets the current system time according to the database server.
      Returns:
      The current system time.