Class DirectoryManifest.Factory
java.lang.Object
com.netflix.genie.common.internal.dtos.DirectoryManifest.Factory
- Enclosing class:
- DirectoryManifest
Factory that encapsulates directory manifest creation.
-
Constructor Summary
ConstructorsConstructorDescriptionFactory()Constructor with no filters.Factory(DirectoryManifest.Filter filter) Constructor with filter. -
Method Summary
Modifier and TypeMethodDescriptiongetDirectoryManifest(Path directory, boolean includeChecksum) Create a manifest from the given job directory.
-
Constructor Details
-
Factory
public Factory()Constructor with no filters. -
Factory
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 fromincludeChecksum- 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
-