Uses of Class
dk.netarkivet.common.distribute.arcrepository.Replica
-
-
Uses of Replica in dk.netarkivet.archive.arcrepository.bitpreservation
Methods in dk.netarkivet.archive.arcrepository.bitpreservation that return Replica Modifier and Type Method Description Replica
DatabasePreservationState. getReferenceBitarchive()
Returns a reference to a replica 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
PreservationState. getReferenceBitarchive()
Returns a reference to a bitarchive that contains a version of the file with the correct checksum.Methods in dk.netarkivet.archive.arcrepository.bitpreservation with parameters of type Replica Modifier and Type Method Description boolean
DatabasePreservationState. fileIsMissing(Replica replica)
Check if the file is missing from a replica.boolean
FilePreservationState. fileIsMissing(Replica replica)
Check if the file is missing from a replica.boolean
PreservationState. fileIsMissing(Replica bitarchive)
Check if the file is missing from a bitarchive.void
ActiveBitPreservation. findChangedFiles(Replica replica)
Update the list of checksums in a given replica.void
DatabaseBasedActiveBitPreservation. findChangedFiles(Replica replica)
The method is used to update the checksum for all the files in 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
ActiveBitPreservation. findMissingFiles(Replica replica)
Update the list of files in a given bitarchive.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
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.String
DatabasePreservationState. getAdminReplicaState(Replica replica)
Get the status of the file in a replica, 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
PreservationState. getAdminReplicaState(Replica replica)
Get the status of the file in a bitarchive, according to the admin data.Iterable<String>
ActiveBitPreservation. getChangedFiles(Replica replica)
Return a list of files with changed checksums on this replica.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>
FileBasedActiveBitPreservation. getChangedFiles(Replica bitarchive)
Deprecated.Get a list of corrupt files in a given bitarchive.Date
ActiveBitPreservation. getDateForChangedFiles(Replica replica)
Return the date for last check of changed files for replica.Date
DatabaseBasedActiveBitPreservation. getDateForChangedFiles(Replica replica)
This method retrieves the date for the latest checksum update was performed for the replica.Date
FileBasedActiveBitPreservation. getDateForChangedFiles(Replica replica)
Deprecated.Get the date for last time the checksum information was updated for this replica.Date
ActiveBitPreservation. getDateForMissingFiles(Replica replica)
Return the date for last check of missing files for replica.Date
DatabaseBasedActiveBitPreservation. getDateForMissingFiles(Replica replica)
This method retrieves the date for the latest filelist update was performed for the replica.Date
FileBasedActiveBitPreservation. getDateForMissingFiles(Replica replica)
Deprecated.Get the date for last time the missing files information was updated for this 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>
ActiveBitPreservation. getMissingFiles(Replica replica)
Return a list of files marked as missing on this 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>
FileBasedActiveBitPreservation. getMissingFiles(Replica replica)
Deprecated.Get a list of missing files in a given replica.long
ActiveBitPreservation. getNumberOfChangedFiles(Replica replica)
Return the number of changed files for replica.long
DatabaseBasedActiveBitPreservation. getNumberOfChangedFiles(Replica replica)
The method calculates the number of files which has a wrong checksum for the replica.long
FileBasedActiveBitPreservation. getNumberOfChangedFiles(Replica replica)
Deprecated.Get the number of wrong files for a replica.long
ActiveBitPreservation. getNumberOfFiles(Replica replica)
Return the total number of files for 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
FileBasedActiveBitPreservation. getNumberOfFiles(Replica replica)
Deprecated.Return the number of files found in the replica.long
ActiveBitPreservation. getNumberOfMissingFiles(Replica replica)
Return the number of missing files for replica.long
DatabaseBasedActiveBitPreservation. getNumberOfMissingFiles(Replica replica)
This method calculates the number of files which are not found in the given replica.long
FileBasedActiveBitPreservation. getNumberOfMissingFiles(Replica replica)
Deprecated.Get the number of missing files in a given replica.protected static File
WorkFiles. getPreservationDir(Replica replica)
Get the base dir for all files related to bitpreservation for a given bitarchive.List<String>
DatabasePreservationState. 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>
PreservationState. getReplicaChecksum(Replica replica)
Get the checksum of this file in a specific replica.String
DatabasePreservationState. getUniqueChecksum(Replica replica)
Get a checksum that the whole replica agrees upon, or else "".String
FilePreservationState. getUniqueChecksum(Replica r)
Get a checksum that the whole replica agrees upon, or else "".String
PreservationState. getUniqueChecksum(Replica replica)
Get a checksum that the whole bitarchive agrees upon, or else "".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
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
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
ActiveBitPreservation. uploadMissingFiles(Replica replica, String... filenames)
Check that files are indeed missing on the given replica, and present in admin data and reference replica.void
DatabaseBasedActiveBitPreservation. uploadMissingFiles(Replica replica, String... filenames)
This method is used to upload missing files to a 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.static void
WorkFiles. write(Replica replica, WorkFiles fileType, Set<String> files)
Method for writing the list of files to a work file. -
Uses of Replica in dk.netarkivet.archive.arcrepository.distribute
Methods in dk.netarkivet.archive.arcrepository.distribute with parameters of type Replica Modifier and Type Method Description void
BitmagArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
Synchronously retrieves a file from a bitarchive and places it in a local file.void
JMSArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
Synchronously retrieves a file from a bitarchive and places it in a local file. -
Uses of Replica in dk.netarkivet.archive.arcrepositoryadmin
Methods in dk.netarkivet.archive.arcrepositoryadmin that return Replica Modifier and Type Method Description Replica
BitPreservationDAO. getBitarchiveWithGoodFile(String filename)
Method for retrieving a replica which has the file and the checksum_status = OK.Replica
BitPreservationDAO. getBitarchiveWithGoodFile(String filename, Replica badReplica)
Method for retrieving a replica which has the file and the checksum_status = OK.Replica
ReplicaCacheDatabase. getBitarchiveWithGoodFile(String filename)
Method for finding a replica with a valid version of a file.Replica
ReplicaCacheDatabase. getBitarchiveWithGoodFile(String filename, Replica badReplica)
Method for finding a replica with a valid version of a file.Methods in dk.netarkivet.archive.arcrepositoryadmin with parameters of type Replica Modifier and Type Method Description void
BitPreservationDAO. addChecksumInformation(File checksumOutput, Replica replica)
Given the output of a checksum job, add the results to the database.void
ReplicaCacheDatabase. addChecksumInformation(File checksumOutputFile, 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
BitPreservationDAO. addFileListInformation(File filelistOutput, Replica replica)
Given the output of a file list job, add the results to the database.void
ReplicaCacheDatabase. addFileListInformation(File filelistFile, Replica replica)
Method for adding the results from a list of filenames on a replica.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>
Admin. 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>
DatabaseAdmin. getAllFileNames(Replica rep, ReplicaStoreState state)
Retrieves a set with the name of the files with a specific ReplicaStoreState in a specific replica.Replica
BitPreservationDAO. getBitarchiveWithGoodFile(String filename, Replica badReplica)
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.Date
BitPreservationDAO. getDateOfLastMissingFilesUpdate(Replica replica)
Get the date for the last file list job.Date
ReplicaCacheDatabase. getDateOfLastMissingFilesUpdate(Replica replica)
Get the date for the last file list job.Date
BitPreservationDAO. getDateOfLastWrongFilesUpdate(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.Iterable<String>
BitPreservationDAO. getMissingFilesInLastUpdate(Replica replica)
Return files with upload_status = COMPLETE for the replica, but the filelist_status = MISSING.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.long
BitPreservationDAO. getNumberOfFiles(Replica replica)
Returns the count of files in the replica which is not missing.long
ReplicaCacheDatabase. getNumberOfFiles(Replica replica)
Method for retrieving the number of files within a replica.long
BitPreservationDAO. getNumberOfMissingFilesInLastUpdate(Replica replica)
Return the count of missing files for replica.long
ReplicaCacheDatabase. getNumberOfMissingFilesInLastUpdate(Replica replica)
Method for retrieving the number of files missing from a specific replica.long
BitPreservationDAO. getNumberOfWrongFilesInLastUpdate(Replica replica)
Return the count of corrupt files for replica.long
ReplicaCacheDatabase. getNumberOfWrongFilesInLastUpdate(Replica replica)
Method for retrieving the amount of files with a incorrect checksum within a replica.ReplicaFileInfo
BitPreservationDAO. getReplicaFileInfo(String filename, Replica replica)
Method for retrieving the entry in the replicafileinfo table for a given file and replica.ReplicaFileInfo
ReplicaCacheDatabase. getReplicaFileInfo(String filename, Replica replica)
Method for retrieving the entry in the replicafileinfo table for a given file and replica.Iterable<String>
BitPreservationDAO. getWrongFilesInLastUpdate(Replica replica)
Return files with filelist_status CORRUPT for the replica, but not present in the last missing files job.Iterable<String>
ReplicaCacheDatabase. getWrongFilesInLastUpdate(Replica replica)
Method for retrieving the list of the files in the replica which have a incorrect checksum.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
BitPreservationDAO. updateChecksumInformationForFileOnReplica(String filename, String checksum, Replica replica)
Method for updating a specific entry in the replicafileinfo table.void
ReplicaCacheDatabase. 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. -
Uses of Replica in dk.netarkivet.archive.webinterface
Methods in dk.netarkivet.archive.webinterface with parameters of type Replica Modifier and Type Method 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.Constructors in dk.netarkivet.archive.webinterface with parameters of type Replica Constructor Description BatchExecuter(FileBatchJob job, String pattern, Replica replica)
The constructor.BitpreservationUpdateThread(Replica replica, BitpreservationUpdateType updateType)
Constructor for the BitpreservationUpdateThread. -
Uses of Replica in dk.netarkivet.common.arcrepository
Methods in dk.netarkivet.common.arcrepository with parameters of type Replica Modifier and Type Method Description void
TestArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
void
TrivialArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
Retrieves a file from an ArcRepository and places it in a local file. -
Uses of Replica in dk.netarkivet.common.distribute
Methods in dk.netarkivet.common.distribute that return Replica Modifier and Type Method Description static Replica
Channels. retrieveReplicaFromIdentifierChannel(String channelName)
Method for extracting the replica from the name of the identifier channel.Methods in dk.netarkivet.common.distribute that return types with arguments of type Replica Modifier and Type Method Description static Collection<Replica>
Channels. getReplicas()
Method for retrieving the list of replicas used for the channels. -
Uses of Replica in dk.netarkivet.common.distribute.arcrepository
Methods in dk.netarkivet.common.distribute.arcrepository that return Replica Modifier and Type Method 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.Methods in dk.netarkivet.common.distribute.arcrepository that return types with arguments of type Replica Modifier and Type Method Description static Collection<Replica>
Replica. getKnown()
Get all known replicas.Methods in dk.netarkivet.common.distribute.arcrepository with parameters of type Replica Modifier and Type Method Description void
ArcRepositoryClient. 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
PreservationArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
Retrieves a file from an ArcRepository and places it in a local file.void
ViewerArcRepositoryClient. getFile(String arcfilename, Replica replica, File toFile)
Retrieves a file from an ArcRepository and places it in a local file.
-