|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.extract.apidb.common.Configuration
public class Configuration
Loads and exposes the extraction configuration properties.
Constructor Summary | |
---|---|
Configuration(java.io.File configFile)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
getAllowIncorrectSchemaVersion()
Returns the validate schema version flag. |
java.lang.String |
getChangeFileBeginFormat()
Returns the begin time portion of the changeset filename. |
java.lang.String |
getChangeFileEndFormat()
Returns the end time portion of the changeset filename. |
java.lang.String |
getDatabase()
Returns the database instance. |
DatabaseLoginCredentials |
getDatabaseLoginCredentials()
Provides a fully configured set of database login credentials based on the configuration. |
DatabasePreferences |
getDatabasePreferences()
Provides a fully configured set of database preferences based on the configuration. |
DatabaseType |
getDbType()
Returns the database type. |
java.lang.String |
getHost()
Returns the database host. |
int |
getIntervalLength()
Returns the duration of each changeset interval. |
int |
getLagLength()
Returns the amount of time the extraction process lags the current time to allow the database to stabilise to ensure consistent queries. |
java.lang.String |
getPassword()
Returns the database password. |
boolean |
getReadFullHistory()
Returns the full history flag. |
java.lang.String |
getUser()
Returns the database user. |
boolean |
getValidateSchemaVersion()
Returns the validate schema version flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration(java.io.File configFile)
configFile
- The configuration file to read from.Method Detail |
---|
public java.lang.String getHost()
public java.lang.String getDatabase()
public java.lang.String getUser()
public java.lang.String getPassword()
public DatabaseType getDbType()
public int getIntervalLength()
public int getLagLength()
public java.lang.String getChangeFileBeginFormat()
public java.lang.String getChangeFileEndFormat()
public boolean getReadFullHistory()
public boolean getValidateSchemaVersion()
public boolean getAllowIncorrectSchemaVersion()
public DatabaseLoginCredentials getDatabaseLoginCredentials()
public DatabasePreferences getDatabasePreferences()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |