org.archive.wayback.resourcestore.resourcefile
Class ResourceFileSourceUpdater

java.lang.Object
  extended by 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

Constructor Summary
ResourceFileSourceUpdater()
           
 
Method Summary
 long getInterval()
           
 java.util.List<ResourceFileSource> getSources()
           
 java.lang.String getTarget()
           
 void init()
           
 void setInterval(long interval)
           
 void setSources(java.util.List<ResourceFileSource> sources)
           
 void setTarget(java.lang.String target)
           
 void shutdown()
           
 void synchronizeSources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFileSourceUpdater

public ResourceFileSourceUpdater()
Method Detail

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.