Class DatabaseTimeLoader
java.lang.Object
org.openstreetmap.osmosis.extract.apidb.v0_6.DatabaseTimeLoader
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 Summary
ConstructorsConstructorDescriptionDatabaseTimeLoader(org.openstreetmap.osmosis.core.database.DatabaseLoginCredentials loginCredentials) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the current system time according to the database server.
-
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
Gets the current system time according to the database server.- Returns:
- The current system time.
-