Class Configuration

java.lang.Object
org.openstreetmap.osmosis.extract.apidb.common.Configuration

public class Configuration extends Object
Loads and exposes the extraction configuration properties.
  • Constructor Details

    • Configuration

      public Configuration(File configFile)
      Creates a new instance.
      Parameters:
      configFile - The configuration file to read from.
  • Method Details

    • getHost

      public String getHost()
      Returns the database host.
      Returns:
      The database host.
    • getDatabase

      public String getDatabase()
      Returns the database instance.
      Returns:
      The database instance.
    • getUser

      public String getUser()
      Returns the database user.
      Returns:
      The database user.
    • getPassword

      public String 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

      public String getChangeFileBeginFormat()
      Returns the begin time portion of the changeset filename.
      Returns:
      The format.
    • getChangeFileEndFormat

      public String 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.