|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.extract.mysql.common.TimestampTracker
public class TimestampTracker
Maintains the time that the extraction process has reached. It persists the time across invocations using a file.
Constructor Summary | |
---|---|
TimestampTracker(java.io.File timestampFile,
java.io.File newTimestampFile)
Creates a new instance. |
Method Summary | |
---|---|
java.util.Date |
getTime()
Retrieve the current time. |
void |
setTime(java.util.Date time)
Update the stored time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimestampTracker(java.io.File timestampFile, java.io.File newTimestampFile)
timestampFile
- The location of the file containing the persisted timestamp.newTimestampFile
- The location of the temp file to use when updating the
persisted timestamp to make the update atomic.Method Detail |
---|
public java.util.Date getTime()
public void setTime(java.util.Date time)
time
- The time to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |