|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.merge.v0_6.IntervalDownloader
public class IntervalDownloader
Downloads a set of change files from a HTTP server, and merges them into a single output stream. It tracks the intervals covered by the current files and stores the current timestamp between invocations forming the basis of a replication mechanism.
Constructor Summary | |
---|---|
IntervalDownloader(java.lang.String taskId,
java.io.File workingDirectory)
Creates a new instance. |
Method Summary | |
---|---|
void |
run()
|
void |
setChangeSink(ChangeSink changeSink)
Sets the change sink to send data to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalDownloader(java.lang.String taskId, java.io.File workingDirectory)
taskId
- The identifier for the task, this is required because the
names of threads created by this task will use this name as a
prefix.workingDirectory
- The directory containing configuration and tracking files.Method Detail |
---|
public void setChangeSink(ChangeSink changeSink)
setChangeSink
in interface ChangeSource
changeSink
- The sink for receiving all produced data.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |