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 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

Constructor Summary
ResourceFileSourceUpdater()
           
 
Method Summary
 long getInterval()
           
 List<ResourceFileSource> getSources()
           
 String getTarget()
           
 void init()
           
 void setInterval(long interval)
           
 void setSources(List<ResourceFileSource> sources)
           
 void setTarget(String target)
           
 void shutdown()
          Release any resources used by this ResourceIndex cleanly
 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()
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.