Interface JobArchiver
-
- All Known Implementing Classes:
FileSystemJobArchiverImpl,S3JobArchiverImpl
public interface JobArchiverImplementations of this interface should be able to a write job files to aWritableResourceroot location.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanarchiveDirectory(java.nio.file.Path directory, java.util.List<java.io.File> filesList, java.net.URI target)Attempt to archive a directory located atdirectoryto thetarget.
-
-
-
Method Detail
-
archiveDirectory
boolean archiveDirectory(java.nio.file.Path directory, java.util.List<java.io.File> filesList, java.net.URI target) throws JobArchiveExceptionAttempt to archive a directory located atdirectoryto thetarget. All existing data "under"targetshould 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:
falseif this implementation doesn't support archiving totarget.trueif does support archiving totargetand the archival was successful- Throws:
JobArchiveException- If an exception happened during archival
-
-