org.archive.wayback.resourcestore.indexer
Class DirectoryIndexQueue
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryIndexQueue
public DirectoryIndexQueue()
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.