Package dk.netarkivet.wayback.indexer
Class ArchiveFileDAO
- java.lang.Object
-
- dk.netarkivet.wayback.indexer.GenericHibernateDAO<ArchiveFile,String>
-
- dk.netarkivet.wayback.indexer.ArchiveFileDAO
-
- All Implemented Interfaces:
GenericDAO<ArchiveFile,String>
public class ArchiveFileDAO extends GenericHibernateDAO<ArchiveFile,String>
Data Access Object for ArchiveFile instances.
-
-
Constructor Summary
Constructors Constructor Description ArchiveFileDAO()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(String filename)
Returns true iff this file is found in the object store.List<ArchiveFile>
getFilesAwaitingIndexing()
Returns a list of all files awaiting indexing, ie all files not yet indexed and which have not failed indexing more than the maximum number of allowed times.-
Methods inherited from class dk.netarkivet.wayback.indexer.GenericHibernateDAO
create, delete, findByCriteria, getSession, read, update
-
-
-
-
Method Detail
-
exists
public boolean exists(String filename)
Returns true iff this file is found in the object store.- Parameters:
filename
- the name of the file.- Returns:
- whether or not the file is already known.
-
getFilesAwaitingIndexing
public List<ArchiveFile> getFilesAwaitingIndexing()
Returns a list of all files awaiting indexing, ie all files not yet indexed and which have not failed indexing more than the maximum number of allowed times. The list is ordered such that previously failed files are returned last.- Returns:
- the list of files awaiting indexing.
-
-