org.archive.wayback.resourcestore.resourcefile
Class ResourceFileSourceUpdater
java.lang.Object
org.archive.wayback.resourcestore.resourcefile.ResourceFileSourceUpdater
- All Implemented Interfaces:
- Shutdownable
public class ResourceFileSourceUpdater
- extends 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: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- 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()
- Description copied from interface:
Shutdownable
- Release any resources used by this ResourceIndex cleanly
- Specified by:
shutdown in interface Shutdownable
synchronizeSources
public void synchronizeSources()
getSources
public List<ResourceFileSource> getSources()
setSources
public void setSources(List<ResourceFileSource> sources)
getTarget
public String getTarget()
setTarget
public void setTarget(String target)
throws IOException
- Throws:
IOException
getInterval
public long getInterval()
- Returns:
- the interval
setInterval
public void setInterval(long interval)
- Parameters:
interval - the interval to set
Copyright © 2005-2011 Internet Archive. All Rights Reserved.