public class FileSystemJobArchiverImpl extends java.lang.Object implements JobArchiver
JobArchiver
which attempts to copy the job directory somewhere else on the file
system for backup. A convenient example of this would be a NFS mounted to the Genie host.Constructor and Description |
---|
FileSystemJobArchiverImpl() |
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 . |
public 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.archiveDirectory
in interface JobArchiver
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