Class DirectoryManifest.ManifestEntry

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

public static class DirectoryManifest.ManifestEntry extends Object
Representation of the metadata for a job file on a given underlying storage system.
Since:
4.0.0
  • 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 directory
      name - The name of the entry
      lastModifiedTime - The time the entry was last modified
      lastAccessTime - The time the entry was last accessed
      creationTime - The time the entry was created
      directory - Whether this entry is a directory or not
      size - The current size of the entry within the storage system in bytes. Min 0
      md5 - The md5 hex of the file contents if it's not a directory
      mimeType - The mime type of the file. Null if its a directory
      parent - Optional entry for the path of this entries parent relative to root
      children - The set of paths, from the root, representing children of this entry if any
  • Method Details

    • getMd5

      public Optional<String> getMd5()
      Get the MD5 hash of the file (as 32 hex characters) if it was calculated.
      Returns:
      The MD5 value or Optional.empty()
    • getMimeType

      public Optional<String> getMimeType()
      Get the mime type of this file if it was calculated.
      Returns:
      The mime type value or Optional.empty()
    • getParent

      public Optional<String> 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