Class DirectoryManifest.Factory
- java.lang.Object
-
- com.netflix.genie.common.internal.dtos.DirectoryManifest.Factory
-
- Enclosing class:
- DirectoryManifest
public static class DirectoryManifest.Factory extends java.lang.Object
Factory that encapsulates directory manifest creation.
-
-
Constructor Summary
Constructors Constructor Description Factory()
Constructor with no filters.Factory(DirectoryManifest.Filter filter)
Constructor with filter.
-
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.
-
-
-
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 fromincludeChecksum
- 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
-
-