Class DirectoryManifest.Factory

  • Enclosing class:
    DirectoryManifest

    public static class DirectoryManifest.Factory
    extends java.lang.Object
    Factory that encapsulates directory manifest creation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DirectoryManifest getDirectoryManifest​(java.nio.file.Path directory, boolean includeChecksum)
      Create a manifest from the given job directory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Factory

        public Factory()
        Constructor with no filters.
      • Factory

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

      • getDirectoryManifest

        public DirectoryManifest getDirectoryManifest​(java.nio.file.Path directory,
                                                      boolean includeChecksum)
                                               throws java.io.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:
        java.io.IOException - If there is an error reading the directory