|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreservationArcRepositoryClient
Implements the Facade pattern to shield off the methods in JMSArcRepositoryClient not to be used by the bit preservation system.
Method Summary | |
---|---|
BatchStatus |
batch(FileBatchJob job,
java.lang.String locationName)
Runs a batch batch job on each file in the ArcRepository. |
void |
close()
Call on shutdown to release external resources. |
BitarchiveRecord |
get(java.lang.String arcfile,
long index)
Gets a single ARC record out of the ArcRepository. |
void |
getFile(java.lang.String arcfilename,
Location location,
java.io.File toFile)
Retrieves a file from an ArcRepository and places it in a local file. |
java.io.File |
removeAndGetFile(java.lang.String fileName,
java.lang.String bitarchiveName,
java.lang.String checksum,
java.lang.String credentials)
Remove a file from one part of the ArcRepository, retrieveing a copy for security purposes. |
void |
store(java.io.File file)
Store the given file in the ArcRepository. |
void |
updateAdminChecksum(java.lang.String filename,
java.lang.String checksum)
Updates the checksum kept in the ArcRepository for a given file. |
void |
updateAdminData(java.lang.String fileName,
java.lang.String bitarchiveName,
BitArchiveStoreState newval)
Updates the administrative data in the ArcRepository for a given file and location. |
Method Detail |
---|
void close()
BitarchiveRecord get(java.lang.String arcfile, long index) throws ArgumentNotValid
arcfile
- The name of a file containing the desired record.index
- The offset of the desired record in the file
ArgumentNotValid
- If the get operation failed.void getFile(java.lang.String arcfilename, Location location, java.io.File toFile)
arcfilename
- Name of the arcfile to retrieve.location
- The bitarchive to retrieve the data from.toFile
- Filename of a place where the file fetched can be put.
IOFailure
- if there are problems getting a reply or the file
could not be found.void store(java.io.File file) throws IOFailure, ArgumentNotValid
file
- A file to be stored. Must exist.
IOFailure
- thrown if store is unsuccesful, or failed to clean
up files after the store operation.
ArgumentNotValid
- if file parameter is null or file is not an
existing file.BatchStatus batch(FileBatchJob job, java.lang.String locationName)
job
- An object that implements the FileBatchJob interface. The
initialize() method will be called before processing and the finish()
method will be called afterwards. The process() method will be called
with each File entry.locationName
- The archive to execute the job on.
void updateAdminData(java.lang.String fileName, java.lang.String bitarchiveName, BitArchiveStoreState newval)
fileName
- The name of a file stored in the ArcRepository.bitarchiveName
- The name of the location that the administrative
data for fileName is wrong for.newval
- What the administrative data will be updated to.void updateAdminChecksum(java.lang.String filename, java.lang.String checksum)
filename
- The name of a file stored in the ArcRepository.checksum
- The new checksum.java.io.File removeAndGetFile(java.lang.String fileName, java.lang.String bitarchiveName, java.lang.String checksum, java.lang.String credentials)
fileName
- The name of the file to remove.bitarchiveName
- The location from which to remove the file.checksum
- The checksum of the file to be removed.credentials
- A string that shows that the user is allowed to
perform this operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |