public interface ActiveBitPreservation
Modifier and Type | Method and Description |
---|---|
void |
addMissingFilesToAdminData(String... filenames)
Add files unknown in admin.data to admin.data.
|
void |
changeStateForAdminData(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.
|
Iterable<String> |
getChangedFiles(Replica replica)
Return a list of files with changed checksums on this replica.
|
Iterable<String> |
getChangedFilesForAdminData()
Return a list of files with wrong checksum or state in admin data.
|
Date |
getDateForChangedFiles(Replica replica)
Return the date for last check of changed files for replica.
|
Date |
getDateForMissingFiles(Replica replica)
Return the date for last check of missing files for replica.
|
Iterable<String> |
getMissingFiles(Replica replica)
Return a list of files marked as missing on this replica.
|
Iterable<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(String filename)
Get the details of the state of the given file in the bitarchives and admin data.
|
Map<String,PreservationState> |
getPreservationStateMap(String... filenames)
Get details of the state of one or more files in the bitarchives and admin data.
|
void |
replaceChangedFile(Replica replica,
String filename,
String credentials,
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,
String... filenames)
Check that files are indeed missing on the given replica, and present in admin data and reference replica.
|
Map<String,PreservationState> getPreservationStateMap(String... filenames)
filenames
- the list of filenames to investigatePreservationState getPreservationState(String filename)
filename
- A given fileIterable<String> getMissingFiles(Replica replica)
replica
- The replica to get missing files from.Iterable<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.Date getDateForMissingFiles(Replica replica)
replica
- The replica to get date for changed files from.Date getDateForChangedFiles(Replica replica)
replica
- The replica to get date for changed files from.void uploadMissingFiles(Replica replica, String... filenames)
replica
- The replica to restore files tofilenames
- The names of the files.void replaceChangedFile(Replica replica, String filename, String credentials, 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.Iterable<String> getMissingFilesForAdminData()
Iterable<String> getChangedFilesForAdminData()
void addMissingFilesToAdminData(String... filenames)
filenames
- The files to add.void changeStateForAdminData(String filename)
filename
- The file to reestablish state for.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.