Class BlobCacheService

java.lang.Object
org.apache.flink.runtime.blob.BlobCacheService
All Implemented Interfaces:
Closeable, AutoCloseable, BlobService, TaskExecutorBlobService

public class BlobCacheService extends Object implements TaskExecutorBlobService
The BLOB cache provides access to BLOB services for permanent and transient BLOBs.
  • Constructor Details

    • BlobCacheService

      public BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig, File storageDir, BlobView blobView, @Nullable InetSocketAddress serverAddress) throws IOException
      Throws:
      IOException
    • BlobCacheService

      public BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig, org.apache.flink.util.Reference<File> storageDir, BlobView blobView, @Nullable InetSocketAddress serverAddress) throws IOException
      Instantiates a new BLOB cache.
      Parameters:
      blobClientConfig - global configuration
      storageDir - storage directory for the cached blobs
      blobView - (distributed) blob store file system to retrieve files from first
      serverAddress - address of the BlobServer to use for fetching files from or null if none yet
      Throws:
      IOException - thrown if the (local or distributed) file storage cannot be created or is not usable
    • BlobCacheService

      public BlobCacheService(PermanentBlobCache permanentBlobCache, TransientBlobCache transientBlobCache)
      Instantiates a new BLOB cache.
      Parameters:
      permanentBlobCache - BLOB cache to use for permanent BLOBs
      transientBlobCache - BLOB cache to use for transient BLOBs
  • Method Details