public class ContextEnvironment extends ExecutionEnvironment
| Modifier and Type | Class and Description |
|---|---|
static class |
ContextEnvironment.ContextEnvironmentFactory
The factory that instantiates the environment to be used when running jobs that are
submitted through a pre-configured client connection.
|
jobID, lastJobExecutionResult, sessionTimeout| Constructor and Description |
|---|
ContextEnvironment(Client remoteConnection,
List<URL> jarFiles,
List<URL> classpaths,
ClassLoader userCodeClassLoader,
boolean wait) |
| Modifier and Type | Method and Description |
|---|---|
JobExecutionResult |
execute(String jobName) |
List<URL> |
getClasspaths() |
Client |
getClient() |
String |
getExecutionPlan() |
List<URL> |
getJars() |
boolean |
isWait() |
void |
startNewSession() |
String |
toString() |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, createCollectionsEnvironment, createHadoopInput, createHadoopInput, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createProgramPlan, createProgramPlan, createProgramPlan, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, execute, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getExecutionEnvironment, getId, getIdString, getLastJobExecutionResult, getNumberOfExecutionRetries, getParallelism, getSessionTimeout, initializeContextEnvironment, readCsvFile, readFile, readFileOfPrimitives, readFileOfPrimitives, readHadoopFile, readHadoopFile, readHadoopFile, readHadoopFile, readSequenceFile, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerCachedFile, registerCachedFile, registerCachedFilesWithPlan, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setSessionTimeoutpublic JobExecutionResult execute(String jobName) throws Exception
execute in class ExecutionEnvironmentExceptionpublic String getExecutionPlan() throws Exception
getExecutionPlan in class ExecutionEnvironmentExceptionpublic void startNewSession()
throws Exception
startNewSession in class ExecutionEnvironmentExceptionpublic boolean isWait()
public Client getClient()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.