|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActiveBitPreservation
All bitpreservation implementations are assumed to have access to admin data and bitarchives. Operations may request information from the bitarchive by sending batch jobs, reading admin data directly, or reading from cached information from either.
Method Summary | |
---|---|
void |
addMissingFilesToAdminData(java.lang.String... filenames)
Add files unknown in admin.data to admin.data. |
void |
changeStateForAdminData(java.lang.String filename)
Reestablish admin data to match bitarchive states for file. |
void |
findChangedFiles(Replica replica)
Update the list of checksums in a given replica. |
void |
findMissingFiles(Replica replica)
Update the list of files in a given bitarchive. |
java.lang.Iterable<java.lang.String> |
getChangedFiles(Replica replica)
Return a list of files with changed checksums on this replica. |
java.lang.Iterable<java.lang.String> |
getChangedFilesForAdminData()
Return a list of files with wrong checksum or state in admin data. |
java.util.Date |
getDateForChangedFiles(Replica replica)
Return the date for last check of changed files for replica. |
java.util.Date |
getDateForMissingFiles(Replica replica)
Return the date for last check of missing files for replica. |
java.lang.Iterable<java.lang.String> |
getMissingFiles(Replica replica)
Return a list of files marked as missing on this replica. |
java.lang.Iterable<java.lang.String> |
getMissingFilesForAdminData()
Return a list of files represented in replica but missing in AdminData. |
long |
getNumberOfChangedFiles(Replica replica)
Return the number of changed files for replica. |
long |
getNumberOfFiles(Replica replica)
Return the total number of files for replica. |
long |
getNumberOfMissingFiles(Replica replica)
Return the number of missing files for replica. |
PreservationState |
getPreservationState(java.lang.String filename)
Get the details of the state of the given file in the bitarchives and admin data. |
java.util.Map<java.lang.String,PreservationState> |
getPreservationStateMap(java.lang.String... filenames)
Get details of the state of one or more files in the bitarchives and admin data. |
void |
replaceChangedFile(Replica replica,
java.lang.String filename,
java.lang.String credentials,
java.lang.String checksum)
Check that the checksum of the file is indeed different to the value in admin data and reference replica. |
void |
uploadMissingFiles(Replica replica,
java.lang.String... filenames)
Check that files are indeed missing on the given replica, and present in admin data and reference replica. |
Method Detail |
---|
java.util.Map<java.lang.String,PreservationState> getPreservationStateMap(java.lang.String... filenames)
filenames
- the list of filenames to investigate
PreservationState getPreservationState(java.lang.String filename)
filename
- A given file
java.lang.Iterable<java.lang.String> getMissingFiles(Replica replica)
replica
- The replica to get missing files from.
java.lang.Iterable<java.lang.String> getChangedFiles(Replica replica)
replica
- The replica to get a list of changed files from.
void findMissingFiles(Replica replica)
replica
- The replica to update list of files for.void findChangedFiles(Replica replica)
replica
- The replica to update list of files for.long getNumberOfMissingFiles(Replica replica)
replica
- The replica to get the number of missing files from.
long getNumberOfChangedFiles(Replica replica)
replica
- The replica to get the number of changed files from.
long getNumberOfFiles(Replica replica)
replica
- The replica to get the number of files from.
java.util.Date getDateForMissingFiles(Replica replica)
replica
- The replica to get date for changed files from.
java.util.Date getDateForChangedFiles(Replica replica)
replica
- The replica to get date for changed files from.
void uploadMissingFiles(Replica replica, java.lang.String... filenames)
replica
- The replica to restore files tofilenames
- The names of the files.void replaceChangedFile(Replica replica, java.lang.String filename, java.lang.String credentials, java.lang.String checksum)
replica
- The replica to restore file tofilename
- The name of the filecredentials
- The credentials used to perform this replace operationchecksum
- The known bad checksum. Only a file with this bad
checksum is attempted repaired.java.lang.Iterable<java.lang.String> getMissingFilesForAdminData()
java.lang.Iterable<java.lang.String> getChangedFilesForAdminData()
void addMissingFilesToAdminData(java.lang.String... filenames)
filenames
- The files to add.void changeStateForAdminData(java.lang.String filename)
filename
- The file to reestablish state for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |