Class Configuration
java.lang.Object
org.openstreetmap.osmosis.extract.apidb.common.Configuration
Loads and exposes the extraction configuration properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the validate schema version flag.Returns the begin time portion of the changeset filename.Returns the end time portion of the changeset filename.Returns the database instance.org.openstreetmap.osmosis.core.database.DatabaseLoginCredentialsProvides a fully configured set of database login credentials based on the configuration.org.openstreetmap.osmosis.core.database.DatabasePreferencesProvides a fully configured set of database preferences based on the configuration.org.openstreetmap.osmosis.core.database.DatabaseTypeReturns the database type.getHost()Returns the database host.intReturns the duration of each changeset interval.intReturns the amount of time the extraction process lags the current time to allow the database to stabilise to ensure consistent queries.Returns the database password.booleanReturns the full history flag.getUser()Returns the database user.booleanReturns the validate schema version flag.
-
Constructor Details
-
Configuration
Creates a new instance.- Parameters:
configFile- The configuration file to read from.
-
-
Method Details
-
getHost
Returns the database host.- Returns:
- The database host.
-
getDatabase
Returns the database instance.- Returns:
- The database instance.
-
getUser
Returns the database user.- Returns:
- The database user.
-
getPassword
Returns the database password.- Returns:
- The database password.
-
getDbType
public org.openstreetmap.osmosis.core.database.DatabaseType getDbType()Returns the database type.- Returns:
- The database type
-
getIntervalLength
public int getIntervalLength()Returns the duration of each changeset interval.- Returns:
- The interval length in milliseconds.
-
getLagLength
public int getLagLength()Returns the amount of time the extraction process lags the current time to allow the database to stabilise to ensure consistent queries.- Returns:
- The lag length in milliseconds.
-
getChangeFileBeginFormat
Returns the begin time portion of the changeset filename.- Returns:
- The format.
-
getChangeFileEndFormat
Returns the end time portion of the changeset filename.- Returns:
- The format.
-
getReadFullHistory
public boolean getReadFullHistory()Returns the full history flag.- Returns:
- The full history flag.
-
getValidateSchemaVersion
public boolean getValidateSchemaVersion()Returns the validate schema version flag.- Returns:
- The validate schema version flag.
-
getAllowIncorrectSchemaVersion
public boolean getAllowIncorrectSchemaVersion()Returns the validate schema version flag.- Returns:
- The validate schema version flag.
-
getDatabaseLoginCredentials
public org.openstreetmap.osmosis.core.database.DatabaseLoginCredentials getDatabaseLoginCredentials()Provides a fully configured set of database login credentials based on the configuration.- Returns:
- The database login credentials.
-
getDatabasePreferences
public org.openstreetmap.osmosis.core.database.DatabasePreferences getDatabasePreferences()Provides a fully configured set of database preferences based on the configuration.- Returns:
- The database preferences.
-