|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.wayback.indexer.ArchiveFile
public class ArchiveFile
This class represents a file in the arcrepository which may be indexed by the indexer.
Constructor Summary | |
---|---|
ArchiveFile()
Constructor, creates a new instance in the unindexed state. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getFilename()
The filename is used as a natural key because it is a fundamental property of the arcrepository that filenames are unique. |
java.util.Date |
getIndexedDate()
Returns indexedDate. |
int |
getIndexingFailedAttempts()
Gets the number of failed indexing attempts. |
java.lang.String |
getOriginalIndexFileName()
Gets originalIndexFileName. |
int |
hashCode()
|
void |
index()
Run a batch job to index this file, storing the result locally. |
boolean |
isIndexed()
Returns true if the file has been indexed. |
void |
setFilename(java.lang.String filename)
Sets the filename. |
void |
setIndexed(boolean indexed)
Sets whether the file has been indexed. |
void |
setIndexedDate(java.util.Date indexedDate)
Sets indexedDate. |
void |
setIndexingFailedAttempts(int indexingFailedAttempts)
Sets the number of failed indexing attempts. |
void |
setOriginalIndexFileName(java.lang.String originalIndexFileName)
Sets originalIndexFileName. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiveFile()
Method Detail |
---|
public java.lang.String getOriginalIndexFileName()
public void setOriginalIndexFileName(java.lang.String originalIndexFileName)
originalIndexFileName
- The new original index filenamepublic java.util.Date getIndexedDate()
public void setIndexedDate(java.util.Date indexedDate)
indexedDate
- The new indexed date.public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- The new filenamepublic boolean isIndexed()
public void setIndexed(boolean indexed)
indexed
- The new value of the isIndexed variable.public int getIndexingFailedAttempts()
public void setIndexingFailedAttempts(int indexingFailedAttempts)
indexingFailedAttempts
- The number of failed indexing attemptspublic void index() throws IllegalState
IllegalState
- If the indexing has already been done.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |