Package org.apache.flink.client.program
Class PerJobMiniClusterFactory
- java.lang.Object
-
- org.apache.flink.client.program.PerJobMiniClusterFactory
-
public final class PerJobMiniClusterFactory extends Object
Starts aMiniCluster
for every submitted job. This class guarantees to tear down the MiniCluster in case of normal or exceptional job completion.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerJobMiniClusterFactory
create()
static PerJobMiniClusterFactory
createWithFactory(Configuration configuration, Function<? super MiniClusterConfiguration,? extends MiniCluster> miniClusterFactory)
CompletableFuture<JobClient>
submitJob(ExecutionPlan executionPlan, ClassLoader userCodeClassloader)
Starts aMiniCluster
and submits a job.
-
-
-
Method Detail
-
create
public static PerJobMiniClusterFactory create()
-
createWithFactory
public static PerJobMiniClusterFactory createWithFactory(Configuration configuration, Function<? super MiniClusterConfiguration,? extends MiniCluster> miniClusterFactory)
-
submitJob
public CompletableFuture<JobClient> submitJob(ExecutionPlan executionPlan, ClassLoader userCodeClassloader) throws Exception
Starts aMiniCluster
and submits a job.- Throws:
Exception
-
-