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 final String
    The subdirectory within the job directory where the manifest will be placed.
    static final String
    The name of job manifest file generated by the system.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    archiveDirectory(Path directory, URI targetURI)
    Backup the contents of the given directory to the target location.
  • Field Details

    • MANIFEST_DIRECTORY

      static final String MANIFEST_DIRECTORY
      The subdirectory within the job directory where the manifest will be placed.
      See Also:
    • MANIFEST_NAME

      static final String MANIFEST_NAME
      The name of job manifest file generated by the system.
      See Also:
  • Method Details

    • archiveDirectory

      void archiveDirectory(Path directory, 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 archive
      targetURI - target URI for the root archive location
      Throws:
      JobArchiveException - if archival fails