Modifier and Type | Method and Description |
---|---|
Replica |
PreservationState.getReferenceBitarchive()
Returns a reference to a bitarchive that contains a version of the file with the correct checksum.
|
Replica |
FilePreservationState.getReferenceBitarchive()
Returns a reference to a bitarchive replica that contains a version of the file with the correct checksum.
|
Replica |
DatabasePreservationState.getReferenceBitarchive()
Returns a reference to a replica that contains a version of the file with the correct checksum.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PreservationState.fileIsMissing(Replica bitarchive)
Check if the file is missing from a bitarchive.
|
boolean |
FilePreservationState.fileIsMissing(Replica replica)
Check if the file is missing from a replica.
|
boolean |
DatabasePreservationState.fileIsMissing(Replica replica)
Check if the file is missing from a replica.
|
void |
FileBasedActiveBitPreservation.findChangedFiles(Replica replica)
Deprecated.
This method finds out which files in a given bitarchive are misrepresented in the admin data: Either having the
wrong checksum or not being marked as uploaded when it actually is.
|
void |
DatabaseBasedActiveBitPreservation.findChangedFiles(Replica replica)
The method is used to update the checksum for all the files in a replica.
|
void |
ActiveBitPreservation.findChangedFiles(Replica replica)
Update the list of checksums in a given replica.
|
void |
FileBasedActiveBitPreservation.findMissingFiles(Replica replica)
Deprecated.
This method takes as input the name of a replica for which we wish to retrieve the list of files, either through
a FileListJob or a GetAllFilenamesMessage.
|
void |
DatabaseBasedActiveBitPreservation.findMissingFiles(Replica replica)
This method retrieves the filelist for the replica, and then it updates the database with this list of filenames.
|
void |
ActiveBitPreservation.findMissingFiles(Replica replica)
Update the list of files in a given bitarchive.
|
String |
PreservationState.getAdminReplicaState(Replica replica)
Get the status of the file in a bitarchive, according to the admin data.
|
String |
FilePreservationState.getAdminReplicaState(Replica replica)
Get the status of the file in a replica, according to the admin data.
|
String |
DatabasePreservationState.getAdminReplicaState(Replica replica)
Get the status of the file in a replica, according to the admin data.
|
Iterable<String> |
FileBasedActiveBitPreservation.getChangedFiles(Replica bitarchive)
Deprecated.
Get a list of corrupt files in a given bitarchive.
|
Iterable<String> |
DatabaseBasedActiveBitPreservation.getChangedFiles(Replica replica)
This method retrieves the name of all the files which has a wrong checksum for the replica.
|
Iterable<String> |
ActiveBitPreservation.getChangedFiles(Replica replica)
Return a list of files with changed checksums on this replica.
|
Date |
FileBasedActiveBitPreservation.getDateForChangedFiles(Replica replica)
Deprecated.
Get the date for last time the checksum information was updated for this replica.
|
Date |
DatabaseBasedActiveBitPreservation.getDateForChangedFiles(Replica replica)
This method retrieves the date for the latest checksum update was performed for the replica.
|
Date |
ActiveBitPreservation.getDateForChangedFiles(Replica replica)
Return the date for last check of changed files for replica.
|
Date |
FileBasedActiveBitPreservation.getDateForMissingFiles(Replica replica)
Deprecated.
Get the date for last time the missing files information was updated for this replica.
|
Date |
DatabaseBasedActiveBitPreservation.getDateForMissingFiles(Replica replica)
This method retrieves the date for the latest filelist update was performed for the replica.
|
Date |
ActiveBitPreservation.getDateForMissingFiles(Replica replica)
Return the date for last check of missing files for replica.
|
static File |
WorkFiles.getFile(Replica rep,
WorkFiles fileType)
Method for retrieving a working file.
|
static Date |
WorkFiles.getLastUpdate(Replica rep,
WorkFiles fileType)
Method for retrieving the last modified date of a working file for a specific replica.
|
static List<String> |
WorkFiles.getLines(Replica replica,
WorkFiles fileType)
Method for retrieving the lines of a working file for a specific replica.
|
Iterable<String> |
FileBasedActiveBitPreservation.getMissingFiles(Replica replica)
Deprecated.
Get a list of missing files in a given replica.
|
Iterable<String> |
DatabaseBasedActiveBitPreservation.getMissingFiles(Replica replica)
This method retrieves the name of all the files which are missing for the given replica.
|
Iterable<String> |
ActiveBitPreservation.getMissingFiles(Replica replica)
Return a list of files marked as missing on this replica.
|
long |
FileBasedActiveBitPreservation.getNumberOfChangedFiles(Replica replica)
Deprecated.
Get the number of wrong files for a replica.
|
long |
DatabaseBasedActiveBitPreservation.getNumberOfChangedFiles(Replica replica)
The method calculates the number of files which has a wrong checksum for the replica.
|
long |
ActiveBitPreservation.getNumberOfChangedFiles(Replica replica)
Return the number of changed files for replica.
|
long |
FileBasedActiveBitPreservation.getNumberOfFiles(Replica replica)
Deprecated.
Return the number of files found in the replica.
|
long |
DatabaseBasedActiveBitPreservation.getNumberOfFiles(Replica replica)
This method finds the number of files which are known to be in the archive of a specific replica.
|
long |
ActiveBitPreservation.getNumberOfFiles(Replica replica)
Return the total number of files for replica.
|
long |
FileBasedActiveBitPreservation.getNumberOfMissingFiles(Replica replica)
Deprecated.
Get the number of missing files in a given replica.
|
long |
DatabaseBasedActiveBitPreservation.getNumberOfMissingFiles(Replica replica)
This method calculates the number of files which are not found in the given replica.
|
long |
ActiveBitPreservation.getNumberOfMissingFiles(Replica replica)
Return the number of missing files for replica.
|
protected static File |
WorkFiles.getPreservationDir(Replica replica)
Get the base dir for all files related to bitpreservation for a given bitarchive.
|
List<String> |
PreservationState.getReplicaChecksum(Replica replica)
Get the checksum of this file in a specific replica.
|
List<String> |
FilePreservationState.getReplicaChecksum(Replica replica)
Get the checksum of this file in a specific replica.
|
List<String> |
DatabasePreservationState.getReplicaChecksum(Replica replica)
Get the checksum of this file in a specific replica.
|
String |
PreservationState.getUniqueChecksum(Replica replica)
Get a checksum that the whole bitarchive agrees upon, or else "".
|
String |
FilePreservationState.getUniqueChecksum(Replica r)
Get a checksum that the whole replica agrees upon, or else "".
|
String |
DatabasePreservationState.getUniqueChecksum(Replica replica)
Get a checksum that the whole replica agrees upon, or else "".
|
void |
FileBasedActiveBitPreservation.replaceChangedFile(Replica replica,
String filename,
String credentials,
String checksum)
Deprecated.
Check that file checksum is indeed different to admin data and reference replica.
|
void |
DatabaseBasedActiveBitPreservation.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 |
ActiveBitPreservation.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 |
FileBasedActiveBitPreservation.uploadMissingFiles(Replica replica,
String... filenames)
Deprecated.
Check that the files we want to restore are indeed missing on the replica, and present in admin data and the
reference bitarchive.
|
void |
DatabaseBasedActiveBitPreservation.uploadMissingFiles(Replica replica,
String... filenames)
This method is used to upload missing files to a replica.
|
void |
ActiveBitPreservation.uploadMissingFiles(Replica replica,
String... filenames)
Check that files are indeed missing on the given replica, and present in admin data and reference replica.
|
static void |
WorkFiles.write(Replica replica,
WorkFiles fileType,
Set<String> files)
Method for writing the list of files to a work file.
|
Modifier and Type | Method and Description |
---|---|
void |
JMSArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Synchronously retrieves a file from a bitarchive and places it in a local file.
|
Modifier and Type | Method and Description |
---|---|
Replica |
ReplicaCacheDatabase.getBitarchiveWithGoodFile(String filename)
Method for finding a replica with a valid version of a file.
|
Replica |
BitPreservationDAO.getBitarchiveWithGoodFile(String filename)
Method for retrieving a replica which has the file and the checksum_status = OK.
|
Replica |
ReplicaCacheDatabase.getBitarchiveWithGoodFile(String filename,
Replica badReplica)
Method for finding a replica with a valid version of a file.
|
Replica |
BitPreservationDAO.getBitarchiveWithGoodFile(String filename,
Replica badReplica)
Method for retrieving a replica which has the file and the checksum_status = OK.
|
Modifier and Type | Method and Description |
---|---|
void |
ReplicaCacheDatabase.addChecksumInformation(File checksumOutputFile,
Replica replica)
Given the output of a checksum job, add the results to the database.
|
void |
BitPreservationDAO.addChecksumInformation(File checksumOutput,
Replica replica)
Given the output of a checksum job, add the results to the database.
|
protected static long |
ReplicaCacheHelpers.addFileInformation(String file,
Replica replica,
Connection con)
Add information about one file in a given replica.
|
void |
ReplicaCacheDatabase.addFileListInformation(File filelistFile,
Replica replica)
Method for adding the results from a list of filenames on a replica.
|
void |
BitPreservationDAO.addFileListInformation(File filelistOutput,
Replica replica)
Given the output of a file list job, add the results to the database.
|
void |
ReplicaCacheDatabase.changeStateOfReplicafileinfo(String filename,
Replica replica,
ReplicaStoreState state)
Method for inserting an entry into the database about a file upload has begun for a specific replica.
|
void |
ReplicaCacheDatabase.changeStateOfReplicafileinfo(String filename,
String checksum,
Replica replica,
ReplicaStoreState state)
Method for inserting an entry into the database about a file upload has begun for a specific replica.
|
protected static boolean |
ReplicaCacheHelpers.existsReplicaInDB(Replica rep,
Connection con)
Method for testing whether a replica already is within the database.
|
Set<String> |
DatabaseAdmin.getAllFileNames(Replica rep,
ReplicaStoreState state)
Retrieves a set with the name of the files with a specific ReplicaStoreState in a specific replica.
|
Set<String> |
AdminData.getAllFileNames(Replica replica,
ReplicaStoreState state)
Deprecated.
Returns a set of the arcfile names that are in a given state for a specific bitarchive in the repository.
|
Set<String> |
Admin.getAllFileNames(Replica rep,
ReplicaStoreState state)
Retrieves a set with the name of the files with a specific ReplicaStoreState in a specific replica.
|
Replica |
ReplicaCacheDatabase.getBitarchiveWithGoodFile(String filename,
Replica badReplica)
Method for finding a replica with a valid version of a file.
|
Replica |
BitPreservationDAO.getBitarchiveWithGoodFile(String filename,
Replica badReplica)
Method for retrieving a replica which has the file and the checksum_status = OK.
|
Date |
ReplicaCacheDatabase.getDateOfLastMissingFilesUpdate(Replica replica)
Get the date for the last file list job.
|
Date |
BitPreservationDAO.getDateOfLastMissingFilesUpdate(Replica replica)
Get the date for the last file list job.
|
Date |
ReplicaCacheDatabase.getDateOfLastWrongFilesUpdate(Replica replica)
Method for retrieving the date for the last update for corrupted files.
|
Date |
BitPreservationDAO.getDateOfLastWrongFilesUpdate(Replica replica)
Get the date for the last file list job.
|
Iterable<String> |
ReplicaCacheDatabase.getMissingFilesInLastUpdate(Replica replica)
Method for retrieving the list of the names of the files which was missing for the replica in the last filelist
update.
|
Iterable<String> |
BitPreservationDAO.getMissingFilesInLastUpdate(Replica replica)
Return files with upload_status = COMPLETE for the replica, but the filelist_status = MISSING.
|
long |
ReplicaCacheDatabase.getNumberOfFiles(Replica replica)
Method for retrieving the number of files within a replica.
|
long |
BitPreservationDAO.getNumberOfFiles(Replica replica)
Returns the count of files in the replica which is not missing.
|
long |
ReplicaCacheDatabase.getNumberOfMissingFilesInLastUpdate(Replica replica)
Method for retrieving the number of files missing from a specific replica.
|
long |
BitPreservationDAO.getNumberOfMissingFilesInLastUpdate(Replica replica)
Return the count of missing files for replica.
|
long |
ReplicaCacheDatabase.getNumberOfWrongFilesInLastUpdate(Replica replica)
Method for retrieving the amount of files with a incorrect checksum within a replica.
|
long |
BitPreservationDAO.getNumberOfWrongFilesInLastUpdate(Replica replica)
Return the count of corrupt files for replica.
|
ReplicaFileInfo |
ReplicaCacheDatabase.getReplicaFileInfo(String filename,
Replica replica)
Method for retrieving the entry in the replicafileinfo table for a given file and replica.
|
ReplicaFileInfo |
BitPreservationDAO.getReplicaFileInfo(String filename,
Replica replica)
Method for retrieving the entry in the replicafileinfo table for a given file and replica.
|
Iterable<String> |
ReplicaCacheDatabase.getWrongFilesInLastUpdate(Replica replica)
Method for retrieving the list of the files in the replica which have a incorrect checksum.
|
Iterable<String> |
BitPreservationDAO.getWrongFilesInLastUpdate(Replica replica)
Return files with filelist_status CORRUPT for the replica, but not present in the last missing files job.
|
protected static void |
ReplicaCacheHelpers.insertReplicaIntoDB(Replica rep,
Connection con)
Method for inserting a Replica into the replica table.
|
static long |
ReplicaCacheHelpers.processChecksumline(String filename,
String checksum,
Replica replica,
Connection con)
Process checksum information about one file in a given replica.
|
FileListStatus |
ReplicaCacheDatabase.retrieveFileListStatus(String filename,
Replica replica)
Method for retrieving the filelist_status for a replicafileinfo entry.
|
protected static void |
ReplicaCacheHelpers.setChecksumlistDateForReplica(Replica rep,
Date date,
Connection con)
Method for setting the checksum_updated field for a given replica in the replica table to a specified value.
|
protected static void |
ReplicaCacheHelpers.setFilelistDateForReplica(Replica rep,
Date date,
Connection con)
Method for setting the filelist_updated field for a given replica in the replica table to a specified value.
|
protected static void |
ReplicaCacheHelpers.updateChecksumDateForReplica(Replica rep,
Connection con)
Method for updating the checksum_updated field for a given replica in the replica table.
|
void |
ReplicaCacheDatabase.updateChecksumInformationForFileOnReplica(String filename,
String checksum,
Replica replica)
Method for updating a specific entry in the replicafileinfo table.
|
void |
BitPreservationDAO.updateChecksumInformationForFileOnReplica(String filename,
String checksum,
Replica replica)
Method for updating a specific entry in the replicafileinfo table.
|
protected static void |
ReplicaCacheHelpers.updateFilelistDateForReplica(Replica rep,
Connection connection)
Method for updating the filelist_updated field for a given replica in the replica table.
|
Modifier and Type | Method and Description |
---|---|
static void |
BitpreserveFileState.printChecksumErrorStateForReplica(javax.servlet.jsp.JspWriter out,
Replica replica,
Locale locale)
Print HTML formatted state for checksum errors on a given replica in a given locale.
|
static void |
BitpreserveFileState.printMissingFileStateForReplica(javax.servlet.jsp.JspWriter out,
Replica replica,
Locale locale)
Print HTML formatted state for missing files on a given replica in a given locale.
|
Constructor and Description |
---|
BatchExecuter(FileBatchJob job,
String pattern,
Replica replica)
The constructor.
|
BitpreservationUpdateThread(Replica replica,
BitpreservationUpdateType updateType)
Constructor for the BitpreservationUpdateThread.
|
Modifier and Type | Method and Description |
---|---|
void |
TrivialArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
|
void |
TestArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile) |
Modifier and Type | Method and Description |
---|---|
static Replica |
Channels.retrieveReplicaFromIdentifierChannel(String channelName)
Method for extracting the replica from the name of the identifier channel.
|
Modifier and Type | Method and Description |
---|---|
static Collection<Replica> |
Channels.getReplicas()
Method for retrieving the list of replicas used for the channels.
|
Modifier and Type | Method and Description |
---|---|
static Replica |
Replica.getReplicaFromId(String id)
Get an object representing the replica with the given id.
|
static Replica |
Replica.getReplicaFromName(String name)
Get an object representing the replica with the given name.
|
Modifier and Type | Method and Description |
---|---|
static Collection<Replica> |
Replica.getKnown()
Get all known replicas.
|
Modifier and Type | Method and Description |
---|---|
void |
ViewerArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
|
void |
PreservationArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
|
void |
LocalArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
|
void |
ArcRepositoryClient.getFile(String arcfilename,
Replica replica,
File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
|
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.