public class JobClient extends Object
| Constructor and Description |
|---|
JobClient() |
| Modifier and Type | Method and Description |
|---|---|
static akka.actor.ActorSystem |
startJobClientActorSystem(org.apache.flink.configuration.Configuration config) |
static org.apache.flink.api.common.JobExecutionResult |
submitJobAndWait(akka.actor.ActorSystem actorSystem,
LeaderRetrievalService leaderRetrievalService,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout,
boolean sysoutLogUpdates,
ClassLoader classLoader)
Sends a [[JobGraph]] to the JobClient actor specified by jobClient which submits it then to
the JobManager.
|
static void |
submitJobDetached(ActorGateway jobManagerGateway,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout,
ClassLoader classLoader)
Submits a job in detached mode.
|
public static akka.actor.ActorSystem startJobClientActorSystem(org.apache.flink.configuration.Configuration config)
throws IOException
IOExceptionpublic static org.apache.flink.api.common.JobExecutionResult submitJobAndWait(akka.actor.ActorSystem actorSystem,
LeaderRetrievalService leaderRetrievalService,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout,
boolean sysoutLogUpdates,
ClassLoader classLoader)
throws JobExecutionException
actorSystem - The actor system that performs the communication.leaderRetrievalService - Leader retrieval service which used to find the current leading
JobManagerjobGraph - JobGraph describing the Flink jobtimeout - Timeout for futuressysoutLogUpdates - prints log updates to system out if trueJobExecutionException - Thrown if the job
execution fails.public static void submitJobDetached(ActorGateway jobManagerGateway, JobGraph jobGraph, scala.concurrent.duration.FiniteDuration timeout, ClassLoader classLoader) throws JobExecutionException
jobManagerGateway - Gateway to the JobManager which will execute the jobsjobGraph - The jobtimeout - Timeout in which the JobManager must have responded.JobExecutionExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.