org.archive.wayback.resourcestore.resourcefile
Class ResourceFileSourceUpdater
java.lang.Object
org.archive.wayback.resourcestore.resourcefile.ResourceFileSourceUpdater
- All Implemented Interfaces:
- Shutdownable
public class ResourceFileSourceUpdater
- extends java.lang.Object
- implements Shutdownable
Class which repeatedly builds a ResourceFileList for a set of
ResourceFileSource objects, serializing them into files, and dropping them
into the incoming directory of a ResourceFileLocationDBUpdater.
In the current implementation, this uses only a single thread to scan the
ResourceFileSource objects, but with larger installations (1000's of
ResourceFileSources), multiple threads may later be required.
- Version:
- $Date$, $Revision$
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFileSourceUpdater
public ResourceFileSourceUpdater()
init
public void init()
shutdown
public void shutdown()
- Specified by:
shutdown in interface Shutdownable
synchronizeSources
public void synchronizeSources()
getSources
public java.util.List<ResourceFileSource> getSources()
setSources
public void setSources(java.util.List<ResourceFileSource> sources)
getTarget
public java.lang.String getTarget()
setTarget
public void setTarget(java.lang.String target)
throws java.io.IOException
- Throws:
java.io.IOException
getInterval
public long getInterval()
- Returns:
- the interval
setInterval
public void setInterval(long interval)
- Parameters:
interval - the interval to set
Copyright © 2005-2009 Internet Archive. All Rights Reserved.