dk.netarkivet.common.distribute.arcrepository
Interface HarvesterArcRepositoryClient

All Known Subinterfaces:
ArcRepositoryClient
All Known Implementing Classes:
JMSArcRepositoryClient, LocalArcRepositoryClient

public interface HarvesterArcRepositoryClient

Implements the Facade pattern to shield off the methods in JMSArcRepositoryClient not to be used by the harvest system.


Method Summary
 void close()
          Call on shutdown to release external resources.
 void store(java.io.File file)
          Store the given file in the ArcRepository.
 

Method Detail

close

void close()
Call on shutdown to release external resources.


store

void store(java.io.File file)
           throws IOFailure,
                  ArgumentNotValid
Store the given file in the ArcRepository. After storing, the file is deleted.

Parameters:
file - A file to be stored. Must exist.
Throws:
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.