* The directory containing configuration and tracking files.
*/
public ReplicationStateWriter(File workingDirectory) {
// Create the lock object used to ensure only a single process attempts
// to write to the data directory.
fileLock = new FileBasedLock(new File(workingDirectory, LOCK_FILE));
// Create the object used to persist current state.
statePersistor = new PropertiesPersister(new File(workingDirectory, STATE_FILE));
}