public interface JobArchiver
WritableResource
root location.Modifier and Type | Method and Description |
---|---|
boolean |
archiveDirectory(java.nio.file.Path directory,
java.net.URI target)
Attempt to archive a directory located at
directory to the target . |
boolean archiveDirectory(java.nio.file.Path directory, java.net.URI target) throws JobArchiveException
directory
to the target
. All existing data "under"
target
should be assumed to be overwritten/replaced.directory
- The directory to archivetarget
- The root of a writable location to archive to.false
if this implementation doesn't support archiving to target
. true
if does
support archiving to target
and the archival was successfulJobArchiveException
- If an exception happened during archival