Class JobArchiveServiceImpl

java.lang.Object
com.netflix.genie.common.internal.services.impl.JobArchiveServiceImpl
All Implemented Interfaces:
JobArchiveService

public class JobArchiveServiceImpl extends Object implements JobArchiveService
Default implementation of the JobArchiveService.
Since:
4.0.0
  • Constructor Details

    • JobArchiveServiceImpl

      public JobArchiveServiceImpl(List<JobArchiver> jobArchivers, DirectoryManifest.Factory directoryManifestFactory)
      Constructor.
      Parameters:
      jobArchivers - The ordered list of JobArchiver implementations to use. Not empty.
      directoryManifestFactory - The job directory manifest factory
  • Method Details

    • archiveDirectory

      public void archiveDirectory(Path directory, URI target) 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.
      Specified by:
      archiveDirectory in interface JobArchiveService
      Parameters:
      directory - Path to the directory to archive
      target - target URI for the root archive location
      Throws:
      JobArchiveException - if archival fails