org.archive.wayback.resourcestore.indexer
Class DirectoryIndexQueue

java.lang.Object
  extended by org.archive.wayback.resourcestore.indexer.DirectoryIndexQueue
All Implemented Interfaces:
IndexQueue

public class DirectoryIndexQueue
extends Object
implements IndexQueue

Simple queue implementation, which uses a directory containing empty files to indicate the presence of items in a queue (set in this case...)

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
 
Fields inherited from interface org.archive.wayback.resourcestore.indexer.IndexQueue
STATUS_DONE, STATUS_FAIL, STATUS_RETRY
 
Constructor Summary
DirectoryIndexQueue()
           
 
Method Summary
 String dequeue()
           
 void enqueue(String resourceFileName)
           
 String getPath()
           
 void recordStatus(String resourceFileName, int status)
           
 void setPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryIndexQueue

public DirectoryIndexQueue()
Method Detail

dequeue

public String dequeue()
               throws IOException
Specified by:
dequeue in interface IndexQueue
Throws:
IOException

enqueue

public void enqueue(String resourceFileName)
             throws IOException
Specified by:
enqueue in interface IndexQueue
Throws:
IOException

getPath

public String getPath()
Returns:
the path

setPath

public void setPath(String path)
             throws IOException
Parameters:
path - the path to set
Throws:
IOException

recordStatus

public void recordStatus(String resourceFileName,
                         int status)
Specified by:
recordStatus in interface IndexQueue


Copyright © 2005-2011 Internet Archive. All Rights Reserved.