org.openstreetmap.osmosis.core.merge.v0_6.impl
Class IntervalDownloaderConfiguration

java.lang.Object
  extended by org.openstreetmap.osmosis.core.merge.v0_6.impl.IntervalDownloaderConfiguration

public class IntervalDownloaderConfiguration
extends java.lang.Object

Loads and exposes the extraction configuration properties.

Author:
Brett Henderson

Constructor Summary
IntervalDownloaderConfiguration(java.io.File configFile)
          Creates a new instance.
 
Method Summary
 java.lang.String getBaseUrl()
          Returns the URL that change files should be downloaded from.
 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.
 int getIntervalLength()
          Returns the duration of each changeset interval.
 int getMaxDownloadCount()
          Returns the maximum number of files to download in a single invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalDownloaderConfiguration

public IntervalDownloaderConfiguration(java.io.File configFile)
Creates a new instance.

Parameters:
configFile - The configuration file to read from.
Method Detail

getBaseUrl

public java.lang.String getBaseUrl()
Returns the URL that change files should be downloaded from.

Returns:
The download URL.

getChangeFileBeginFormat

public java.lang.String getChangeFileBeginFormat()
Returns the begin time portion of the changeset filename.

Returns:
The format.

getChangeFileEndFormat

public java.lang.String getChangeFileEndFormat()
Returns the end time portion of the changeset filename.

Returns:
The format.

getIntervalLength

public int getIntervalLength()
Returns the duration of each changeset interval.

Returns:
The interval length in milliseconds.

getMaxDownloadCount

public int getMaxDownloadCount()
Returns the maximum number of files to download in a single invocation.

Returns:
The maximum download count.