Interface JobArchiveService
-
- All Known Implementing Classes:
JobArchiveServiceImpl
public interface JobArchiveService
A service which is responsible for taking the files related to running a Genie job and backing them up to a different location.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MANIFEST_DIRECTORY
The subdirectory within the job directory where the manifest will be placed.static java.lang.String
MANIFEST_NAME
The name of job manifest file generated by the system.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
archiveDirectory(java.nio.file.Path directory, java.net.URI targetURI)
Backup the contents of the given directory to the target location.
-
-
-
Field Detail
-
MANIFEST_DIRECTORY
static final java.lang.String MANIFEST_DIRECTORY
The subdirectory within the job directory where the manifest will be placed.- See Also:
- Constant Field Values
-
MANIFEST_NAME
static final java.lang.String MANIFEST_NAME
The name of job manifest file generated by the system.- See Also:
- Constant Field Values
-
-
Method Detail
-
archiveDirectory
void archiveDirectory(java.nio.file.Path directory, java.net.URI targetURI) throws JobArchiveException
Backup the contents of the given directory to the target location. This will recursively backup ALL the files and sub-directories within the given directory to the target.- Parameters:
directory
-Path
to the directory to archivetargetURI
- targetURI
for the root archive location- Throws:
JobArchiveException
- if archival fails
-
-