|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.v0_6.impl.FileReplicationDestination
public class FileReplicationDestination
A file-based destination for replication data. This writes files beginning at 1.osc.gz and increasing incrementally.
| Constructor Summary | |
|---|---|
FileReplicationDestination(java.io.File workingDirectory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
complete()
Ensures that all information is fully persisted. |
ReplicationState |
loadState()
Loads the existing state. |
void |
process(ChangeContainer change)
Process the change. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
saveState(ReplicationState newState)
Persists the state. |
boolean |
stateExists()
Checks if state currently exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileReplicationDestination(java.io.File workingDirectory)
workingDirectory - The directory that all files will be produced in.| Method Detail |
|---|
public void process(ChangeContainer change)
process in interface ChangeSinkchange - The change to be processed.public void complete()
complete in interface Completablepublic void release()
release in interface Releasablepublic ReplicationState loadState()
loadState in interface ReplicationStatePersisterpublic void saveState(ReplicationState newState)
saveState in interface ReplicationStatePersisternewState - The state to be persisted.public boolean stateExists()
stateExists in interface ReplicationStatePersister
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||