public final class BlobClient extends Object implements Closeable
| Constructor and Description |
|---|
BlobClient(InetSocketAddress serverAddress,
org.apache.flink.configuration.Configuration clientConfig)
Instantiates a new BLOB client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
static List<PermanentBlobKey> |
uploadJarFiles(InetSocketAddress serverAddress,
org.apache.flink.configuration.Configuration clientConfig,
org.apache.flink.api.common.JobID jobId,
List<org.apache.flink.core.fs.Path> jars)
Uploads the JAR files to the
PermanentBlobService of the BlobServer at the
given address with HA as configured. |
public BlobClient(InetSocketAddress serverAddress, org.apache.flink.configuration.Configuration clientConfig) throws IOException
serverAddress - the network address of the BLOB serverclientConfig - additional configuration like SSL parameters required to connect to the blob serverIOException - thrown if the connection to the BLOB server could not be establishedpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isClosed()
public static List<PermanentBlobKey> uploadJarFiles(InetSocketAddress serverAddress, org.apache.flink.configuration.Configuration clientConfig, org.apache.flink.api.common.JobID jobId, List<org.apache.flink.core.fs.Path> jars) throws IOException
PermanentBlobService of the BlobServer at the
given address with HA as configured.serverAddress - Server address of the BlobServerclientConfig - Any additional configuration for the blob clientjobId - ID of the job this blob belongs to (or null if job-unrelated)jars - List of JAR files to uploadIOException - if the upload failsCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.