|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewerArcRepositoryClient
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 replicaId,
java.lang.String... args)
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,
Replica replica,
java.io.File toFile)
Retrieves a file from an ArcRepository and places it in a local file. |
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, Replica replica, java.io.File toFile)
arcfilename
- Name of the arcfile to retrieve.replica
- 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.BatchStatus batch(FileBatchJob job, java.lang.String replicaId, java.lang.String... args)
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. An optional function postProcess() allows handling
the combined results of the batchjob, e.g. summing the results, sorting,
etc.replicaId
- The archive to execute the job on.args
- The arguments for the batchjob.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |