@Internal public class DetachedApplicationRunner extends Object implements ApplicationRunner
ApplicationRunner which runs the user specified application using the EmbeddedExecutor.
This runner invokes methods of the provided DispatcherGateway directly, and it does not go through
the REST API.
In addition, this runner does not wait for the application to finish, but it submits the
application in a DETACHED mode. As a consequence, applications with jobs that rely on
operations like [collect, print, printToErr, count] will fail.
| 构造器和说明 |
|---|
DetachedApplicationRunner(boolean enforceSingleJobExecution) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<org.apache.flink.api.common.JobID> |
run(org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway,
PackagedProgram program,
org.apache.flink.configuration.Configuration configuration)
Runs the application using the provided
dispatcherGateway. |
public DetachedApplicationRunner(boolean enforceSingleJobExecution)
public List<org.apache.flink.api.common.JobID> run(org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, PackagedProgram program, org.apache.flink.configuration.Configuration configuration)
ApplicationRunnerdispatcherGateway.run 在接口中 ApplicationRunnerdispatcherGateway - the dispatcher of the cluster to run the application.program - the PackagedProgram containing the user's main method.configuration - the configuration used to run the application.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.