Interface JobArchiver
- All Known Implementing Classes:
FileSystemJobArchiverImpl
,S3JobArchiverImpl
public interface JobArchiver
Implementations of this interface should be able to a write job files to a
WritableResource
root location.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
archiveDirectory
(Path directory, List<File> filesList, URI target) Attempt to archive a directory located atdirectory
to thetarget
.
-
Method Details
-
archiveDirectory
boolean archiveDirectory(Path directory, List<File> filesList, URI target) throws JobArchiveException Attempt to archive a directory located atdirectory
to thetarget
. All existing data "under"target
should be assumed to be overwritten/replaced.- Parameters:
directory
- The directory to archivefilesList
- The list of files to archivetarget
- The root of a writable location to archive to.- Returns:
false
if this implementation doesn't support archiving totarget
.true
if does support archiving totarget
and the archival was successful- Throws:
JobArchiveException
- If an exception happened during archival
-