Class DirectoryManifest.Factory

java.lang.Object
com.netflix.genie.common.internal.dtos.DirectoryManifest.Factory
Enclosing class:
DirectoryManifest

public static class DirectoryManifest.Factory extends Object
Factory that encapsulates directory manifest creation.
  • Constructor Details

    • Factory

      public Factory()
      Constructor with no filters.
    • Factory

      public Factory(DirectoryManifest.Filter filter)
      Constructor with filter.
      Parameters:
      filter - the manifest filter
  • Method Details

    • getDirectoryManifest

      public DirectoryManifest getDirectoryManifest(Path directory, boolean includeChecksum) throws IOException
      Create a manifest from the given job directory.
      Parameters:
      directory - The job directory to create a manifest from
      includeChecksum - Whether or not to calculate checksums for each file added to the manifest
      Returns:
      a directory manifest
      Throws:
      IOException - If there is an error reading the directory