public enum ClientUtils extends Enum<ClientUtils>
| Modifier and Type | Method and Description |
|---|---|
static URLClassLoader |
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,
boolean enforceSingleJobExecution,
boolean suppressSysout) |
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.
|
static void |
waitUntilJobInitializationFinished(org.apache.flink.util.function.SupplierWithException<org.apache.flink.api.common.JobStatus,Exception> jobStatusSupplier,
org.apache.flink.util.function.SupplierWithException<org.apache.flink.runtime.jobmaster.JobResult,Exception> jobResultSupplier,
ClassLoader userCodeClassloader)
This method blocks until the job status is not INITIALIZING anymore.
|
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 URLClassLoader buildUserCodeClassLoader(List<URL> jars, List<URL> classpaths, ClassLoader parent, org.apache.flink.configuration.Configuration configuration)
public static void executeProgram(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration configuration,
PackagedProgram program,
boolean enforceSingleJobExecution,
boolean suppressSysout)
throws ProgramInvocationException
ProgramInvocationExceptionpublic static void waitUntilJobInitializationFinished(org.apache.flink.util.function.SupplierWithException<org.apache.flink.api.common.JobStatus,Exception> jobStatusSupplier, org.apache.flink.util.function.SupplierWithException<org.apache.flink.runtime.jobmaster.JobResult,Exception> jobResultSupplier, ClassLoader userCodeClassloader) throws org.apache.flink.runtime.client.JobInitializationException
jobStatusSupplier - supplier returning the job status.jobResultSupplier - supplier returning the job result. This will only be called if the
job reaches the FAILED state.org.apache.flink.runtime.client.JobInitializationException - If the initialization failedCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.