Interface HarvesterArcRepositoryClient
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
ArcRepositoryClient
- All Known Implementing Classes:
BitmagArcRepositoryClient
,JMSArcRepositoryClient
,LocalArcRepositoryClient
,TestArcRepositoryClient
,TrivialArcRepositoryClient
public interface HarvesterArcRepositoryClient extends AutoCloseable
Implements the Facade pattern to shield off the methods in JMSArcRepositoryClient not to be used by the harvest system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Call on shutdown to release external resources.void
store(File file)
Store the given file in the ArcRepository.
-
-
-
Method Detail
-
close
void close()
Call on shutdown to release external resources.- Specified by:
close
in interfaceAutoCloseable
-
store
void store(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.
-
-