Interface JobDirectoryManifestCreatorService

All Known Implementing Classes:
JobDirectoryManifestCreatorServiceImpl

public interface JobDirectoryManifestCreatorService
Factory-like service that produces DirectoryManifest for Genie jobs directories. Implementations can have behaviors such as remotely fetching, or caching.
Since:
4.0.0
  • Method Details

    • getDirectoryManifest

      DirectoryManifest getDirectoryManifest(Path jobDirectoryPath) throws IOException
      Produces a DirectoryManifest for the given job.
      Parameters:
      jobDirectoryPath - the job directory
      Returns:
      a DirectoryManifest
      Throws:
      IOException - if the manifest cannot be created.
    • invalidateCachedDirectoryManifest

      void invalidateCachedDirectoryManifest(Path jobDirectoryPath)
      If the implementation caches manifests to avoid excessive I/O, then demand the given cache entry be dropped, thus forcing a re-creation of manifest from scratch.
      Parameters:
      jobDirectoryPath - the job directory