public class JobClient extends Object
| Constructor and Description |
|---|
JobClient() |
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress |
getJobManagerAddress(org.apache.flink.configuration.Configuration config)
Extracts the JobManager's Akka URL from the configuration.
|
static akka.actor.ActorSystem |
startJobClientActorSystem(org.apache.flink.configuration.Configuration config) |
static SerializedJobExecutionResult |
submitJobAndWait(akka.actor.ActorSystem actorSystem,
akka.actor.ActorRef jobManager,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout,
boolean sysoutLogUpdates)
Sends a [[JobGraph]] to the JobClient actor specified by jobClient which submits it then to
the JobManager.
|
static void |
submitJobDetached(akka.actor.ActorRef jobManager,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout)
Submits a job in detached mode.
|
static void |
uploadJarFiles(JobGraph jobGraph,
akka.actor.ActorRef jobManager,
scala.concurrent.duration.FiniteDuration timeout)
Uploads the specified jar files of the [[JobGraph]] jobGraph to the BlobServer of the
JobManager.
|
public static akka.actor.ActorSystem startJobClientActorSystem(org.apache.flink.configuration.Configuration config)
throws IOException
IOExceptionpublic static InetSocketAddress getJobManagerAddress(org.apache.flink.configuration.Configuration config) throws IOException
config - Configuration object containing all user provided configuration valuesIOExceptionpublic static SerializedJobExecutionResult submitJobAndWait(akka.actor.ActorSystem actorSystem, akka.actor.ActorRef jobManager, JobGraph jobGraph, scala.concurrent.duration.FiniteDuration timeout, boolean sysoutLogUpdates) throws JobExecutionException
actorSystem - The actor system that performs the communication.jobManager - The JobManager that should execute the job.jobGraph - JobGraph describing the Flink jobtimeout - Timeout for futuresJobExecutionException - Thrown if the job
execution fails.public static void submitJobDetached(akka.actor.ActorRef jobManager,
JobGraph jobGraph,
scala.concurrent.duration.FiniteDuration timeout)
throws JobExecutionException
jobGraph - The jobtimeout - Timeout in which the JobManager must have responded.JobExecutionExceptionpublic static void uploadJarFiles(JobGraph jobGraph, akka.actor.ActorRef jobManager, scala.concurrent.duration.FiniteDuration timeout) throws IOException
jobGraph - Flink job containing the information about the required jarsjobManager - ActorRef of the JobManager.timeout - Timeout for futuresIOException - Thrown, if the file upload to the JobManager failed.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.