public class BlobCacheService extends Object implements TaskExecutorBlobService
| Constructor and Description |
|---|
BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig,
File storageDir,
BlobView blobView,
InetSocketAddress serverAddress) |
BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig,
org.apache.flink.util.Reference<File> storageDir,
BlobView blobView,
InetSocketAddress serverAddress)
Instantiates a new BLOB cache.
|
BlobCacheService(PermanentBlobCache permanentBlobCache,
TransientBlobCache transientBlobCache)
Instantiates a new BLOB cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
PermanentBlobCache |
getPermanentBlobService()
Returns a BLOB service for accessing permanent BLOBs.
|
int |
getPort()
Returns the port of the BLOB server that this BLOB service is working with.
|
TransientBlobCache |
getTransientBlobService()
Returns a BLOB service for accessing transient BLOBs.
|
void |
setBlobServerAddress(InetSocketAddress blobServerAddress)
Sets the address of the
BlobServer. |
public BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig,
File storageDir,
BlobView blobView,
@Nullable
InetSocketAddress serverAddress)
throws IOException
IOExceptionpublic BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig,
org.apache.flink.util.Reference<File> storageDir,
BlobView blobView,
@Nullable
InetSocketAddress serverAddress)
throws IOException
blobClientConfig - global configurationstorageDir - storage directory for the cached blobsblobView - (distributed) blob store file system to retrieve files from firstserverAddress - address of the BlobServer to use for fetching files from or
null if none yetIOException - thrown if the (local or distributed) file storage cannot be created or is
not usablepublic BlobCacheService(PermanentBlobCache permanentBlobCache, TransientBlobCache transientBlobCache)
permanentBlobCache - BLOB cache to use for permanent BLOBstransientBlobCache - BLOB cache to use for transient BLOBspublic PermanentBlobCache getPermanentBlobService()
BlobServicegetPermanentBlobService in interface BlobServicegetPermanentBlobService in interface TaskExecutorBlobServicepublic TransientBlobCache getTransientBlobService()
BlobServicegetTransientBlobService in interface BlobServicepublic void setBlobServerAddress(InetSocketAddress blobServerAddress)
BlobServer.setBlobServerAddress in interface TaskExecutorBlobServiceblobServerAddress - address of the BlobServer.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getPort()
BlobServicegetPort in interface BlobServiceCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.