org.archive.wayback.resourcestore.indexer
Class DirectoryIndexQueue
java.lang.Object
org.archive.wayback.resourcestore.indexer.DirectoryIndexQueue
- All Implemented Interfaces:
- IndexQueue
public class DirectoryIndexQueue
- extends java.lang.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$, $Revision$
- Author:
- brad
|
Method Summary |
java.lang.String |
dequeue()
|
void |
enqueue(java.lang.String resourceFileName)
|
java.lang.String |
getPath()
|
void |
recordStatus(java.lang.String resourceFileName,
int status)
|
void |
setPath(java.lang.String path)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryIndexQueue
public DirectoryIndexQueue()
dequeue
public java.lang.String dequeue()
throws java.io.IOException
- Specified by:
dequeue in interface IndexQueue
- Throws:
java.io.IOException
enqueue
public void enqueue(java.lang.String resourceFileName)
throws java.io.IOException
- Specified by:
enqueue in interface IndexQueue
- Throws:
java.io.IOException
getPath
public java.lang.String getPath()
- Returns:
- the path
setPath
public void setPath(java.lang.String path)
throws java.io.IOException
- Parameters:
path - the path to set
- Throws:
java.io.IOException
recordStatus
public void recordStatus(java.lang.String resourceFileName,
int status)
- Specified by:
recordStatus in interface IndexQueue
Copyright © 2005-2009 Internet Archive. All Rights Reserved.