public enum ClientUtils extends Enum<ClientUtils>
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
buildUserCodeClassLoader(List<URL> jars,
List<URL> classpaths,
ClassLoader parent,
org.apache.flink.configuration.Configuration configuration) |
static void |
executeProgram(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration configuration,
PackagedProgram program) |
static org.apache.flink.api.common.JobExecutionResult |
submitJob(ClusterClient<?> client,
org.apache.flink.runtime.jobgraph.JobGraph jobGraph) |
static org.apache.flink.api.common.JobExecutionResult |
submitJobAndWaitForResult(ClusterClient<?> client,
org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
ClassLoader classLoader) |
static ClientUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ClientUtils[] values()
for (ClientUtils c : ClientUtils.values()) System.out.println(c);
public static ClientUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ClassLoader buildUserCodeClassLoader(List<URL> jars, List<URL> classpaths, ClassLoader parent, org.apache.flink.configuration.Configuration configuration)
public static org.apache.flink.api.common.JobExecutionResult submitJob(ClusterClient<?> client, org.apache.flink.runtime.jobgraph.JobGraph jobGraph) throws ProgramInvocationException
ProgramInvocationExceptionpublic static org.apache.flink.api.common.JobExecutionResult submitJobAndWaitForResult(ClusterClient<?> client, org.apache.flink.runtime.jobgraph.JobGraph jobGraph, ClassLoader classLoader) throws ProgramInvocationException
ProgramInvocationExceptionpublic static void executeProgram(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration configuration,
PackagedProgram program)
throws ProgramInvocationException
ProgramInvocationExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.