Class DirectoryManifest.ManifestEntry
java.lang.Object
com.netflix.genie.common.internal.dtos.DirectoryManifest.ManifestEntry
- Enclosing class:
- DirectoryManifest
Representation of the metadata for a job file on a given underlying storage system.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMd5()
Get the MD5 hash of the file (as 32 hex characters) if it was calculated.Get the mime type of this file if it was calculated.Get the relative path from root of the parent of this entry if there was one.
-
Constructor Details
-
ManifestEntry
public ManifestEntry(String path, String name, Instant lastModifiedTime, Instant lastAccessTime, Instant creationTime, boolean directory, long size, @Nullable String md5, @Nullable String mimeType, @Nullable String parent, Set<String> children) Constructor.- Parameters:
path
- The relative path to the entry from the root of the job directoryname
- The name of the entrylastModifiedTime
- The time the entry was last modifiedlastAccessTime
- The time the entry was last accessedcreationTime
- The time the entry was createddirectory
- Whether this entry is a directory or notsize
- The current size of the entry within the storage system in bytes. Min 0md5
- The md5 hex of the file contents if it's not a directorymimeType
- The mime type of the file. Null if its a directoryparent
- Optional entry for the path of this entries parent relative to rootchildren
- The set of paths, from the root, representing children of this entry if any
-
-
Method Details
-
getMd5
Get the MD5 hash of the file (as 32 hex characters) if it was calculated.- Returns:
- The MD5 value or
Optional.empty()
-
getMimeType
Get the mime type of this file if it was calculated.- Returns:
- The mime type value or
Optional.empty()
-
getParent
Get the relative path from root of the parent of this entry if there was one. There likely wouldn't be one for the root of the job directory.- Returns:
- The relative path from root of the parent wrapped in an
Optional
-