|
|||||||||
| 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.FileReplicationStatePersistor
public class FileReplicationStatePersistor
A file-based persister for replication state.
| Constructor Summary | |
|---|---|
FileReplicationStatePersistor(java.io.File stateFile)
Creates a new instance. |
|
| Method Summary | |
|---|---|
ReplicationState |
loadState()
Loads the existing state. |
void |
saveState(ReplicationState state)
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 FileReplicationStatePersistor(java.io.File stateFile)
stateFile - The location of the file containing the persisted data.| Method Detail |
|---|
public ReplicationState loadState()
loadState in interface ReplicationStatePersisterpublic void saveState(ReplicationState state)
saveState in interface ReplicationStatePersisterstate - 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 | ||||||||