Class PipelineExecutorUtils
java.lang.Object
org.apache.flink.client.deployment.executors.PipelineExecutorUtils
Utility class with method related to job execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.runtime.jobgraph.JobGraphgetJobGraph(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration, ClassLoader userClassloader) Creates theJobGraphcorresponding to the providedPipeline.static org.apache.flink.streaming.api.graph.StreamGraphgetStreamGraph(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration) static voidnotifyJobStatusListeners(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.streaming.api.graph.ExecutionPlan executionPlan, List<org.apache.flink.core.execution.JobStatusChangedListener> listeners) Notify theDefaultJobCreatedEventto job status changed listeners.
-
Constructor Details
-
PipelineExecutorUtils
public PipelineExecutorUtils()
-
-
Method Details
-
getJobGraph
public static org.apache.flink.runtime.jobgraph.JobGraph getJobGraph(@Nonnull org.apache.flink.api.dag.Pipeline pipeline, @Nonnull org.apache.flink.configuration.Configuration configuration, @Nonnull ClassLoader userClassloader) throws MalformedURLException Creates theJobGraphcorresponding to the providedPipeline.- Parameters:
pipeline- the pipeline whose job graph we are computing.configuration- the configuration with the necessary information such as jars and classpaths to be included, the parallelism of the job and potential savepoint settings used to bootstrap its state.userClassloader- the classloader which can load user classes.- Returns:
- the corresponding
JobGraph. - Throws:
MalformedURLException
-
notifyJobStatusListeners
public static void notifyJobStatusListeners(@Nonnull org.apache.flink.api.dag.Pipeline pipeline, @Nonnull org.apache.flink.streaming.api.graph.ExecutionPlan executionPlan, List<org.apache.flink.core.execution.JobStatusChangedListener> listeners) Notify theDefaultJobCreatedEventto job status changed listeners.- Parameters:
pipeline- the pipeline that contains lineage graph information.executionPlan- executionPlan that contains job basic infolisteners- the list of job status changed listeners
-
getStreamGraph
public static org.apache.flink.streaming.api.graph.StreamGraph getStreamGraph(@Nonnull org.apache.flink.api.dag.Pipeline pipeline, @Nonnull org.apache.flink.configuration.Configuration configuration) throws Exception - Throws:
Exception
-