public class BlobCacheService extends Object implements BlobService
构造器和说明 |
---|
BlobCacheService(org.apache.flink.configuration.Configuration blobClientConfig,
BlobView blobView,
InetSocketAddress serverAddress)
Instantiates a new BLOB cache.
|
BlobCacheService(PermanentBlobCache permanentBlobCache,
TransientBlobCache transientBlobCache)
Instantiates a new BLOB cache.
|
限定符和类型 | 方法和说明 |
---|---|
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, BlobView blobView, @Nullable InetSocketAddress serverAddress) throws IOException
blobClientConfig
- global configurationblobView
- (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()
BlobService
getPermanentBlobService
在接口中 BlobService
public TransientBlobCache getTransientBlobService()
BlobService
getTransientBlobService
在接口中 BlobService
public void setBlobServerAddress(InetSocketAddress blobServerAddress)
BlobServer
.blobServerAddress
- address of the BlobServer
.public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
public int getPort()
BlobService
getPort
在接口中 BlobService
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.