public enum ClientUtils extends Enum<ClientUtils>
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
extractAndUploadJobGraphFiles(JobGraph jobGraph,
org.apache.flink.util.function.SupplierWithException<BlobClient,IOException> clientSupplier)
Extracts all files required for the execution from the given
JobGraph and uploads
them using the BlobClient from the given Supplier. |
static void |
uploadJobGraphFiles(JobGraph jobGraph,
Collection<org.apache.flink.core.fs.Path> userJars,
Collection<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.core.fs.Path>> userArtifacts,
org.apache.flink.util.function.SupplierWithException<BlobClient,IOException> clientSupplier)
Uploads the given jars and artifacts required for the execution of the given
JobGraph
using the BlobClient from the given Supplier. |
static ClientUtils |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ClientUtils[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static ClientUtils[] values()
for (ClientUtils c : ClientUtils.values()) System.out.println(c);
public static ClientUtils valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static void extractAndUploadJobGraphFiles(JobGraph jobGraph, org.apache.flink.util.function.SupplierWithException<BlobClient,IOException> clientSupplier) throws org.apache.flink.util.FlinkException
JobGraph and uploads
them using the BlobClient from the given Supplier.jobGraph - jobgraph requiring filesclientSupplier - supplier of blob client to upload files withorg.apache.flink.util.FlinkException - if the upload failspublic static void uploadJobGraphFiles(JobGraph jobGraph, Collection<org.apache.flink.core.fs.Path> userJars, Collection<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.core.fs.Path>> userArtifacts, org.apache.flink.util.function.SupplierWithException<BlobClient,IOException> clientSupplier) throws org.apache.flink.util.FlinkException
JobGraph
using the BlobClient from the given Supplier.jobGraph - jobgraph requiring filesuserJars - jars to uploaduserArtifacts - artifacts to uploadclientSupplier - supplier of blob client to upload files withorg.apache.flink.util.FlinkException - if the upload failsCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.