Class PermanentBlobCache

  • All Implemented Interfaces:
    Closeable, AutoCloseable, JobPermanentBlobService, PermanentBlobService

    public class PermanentBlobCache
    extends AbstractBlobCache
    implements JobPermanentBlobService
    Provides a cache for permanent BLOB files including a per-job ref-counting and a staged cleanup.

    When requesting BLOBs via getFile(JobID, PermanentBlobKey), the cache will first attempt to serve the file from its local cache. Only if the local cache does not contain the desired BLOB, it will try to download it from a distributed HA file system (if available) or the BLOB server.

    If files for a job are not needed any more, they will enter a staged, i.e. deferred, cleanup. Files may thus still be accessible upon recovery and do not need to be re-downloaded.