- All Implemented Interfaces:
- Shutdownable
public class ResourceFileLocationDBUpdater
extends Object
implements Shutdownable
Class which performs updates on a ResourceFileLocationDB, based on files
appearing in a incoming directory. When files are noticed in the "incoming"
directory, they are assumed to be in the format serialized by
org.archive.wayback.resourcestore.resourcefile.ResourceFileList
These files are synchronized with the ResourceFileLocationDB, and deleted.
Each file has a logical name, which is assumed to uniquely identify a
ResourceFileSource. As an optimization, the last state of each
ResouceFileSource is kept in a file under the "state" directory.
This allows this class to compute a difference of the last state with the
new files in incoming, and only deltas: new files, removed files,
and possibly moved files, need to applied to the ResourceFileLocationDB.
- Version:
- $Date$, $Revision$
- Author:
- brad