public class ContextEnvironment
extends org.apache.flink.api.java.ExecutionEnvironment
| Modifier and Type | Field and Description |
|---|---|
protected List<URL> |
classpathsToAttach |
protected Client |
client |
protected List<URL> |
jarFilesToAttach |
protected String |
savepointPath |
protected ClassLoader |
userCodeClassLoader |
| Constructor and Description |
|---|
ContextEnvironment(Client remoteConnection,
List<URL> jarFiles,
List<URL> classpaths,
ClassLoader userCodeClassLoader,
String savepointPath) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
List<URL> |
getClasspaths() |
Client |
getClient() |
String |
getExecutionPlan() |
List<URL> |
getJars() |
String |
getSavepointPath() |
ClassLoader |
getUserCodeClassLoader() |
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, getRestartStrategy, 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, setRestartStrategy, setSessionTimeoutprotected final Client client
protected final ClassLoader userCodeClassLoader
protected final String savepointPath
public org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws Exception
execute in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic String getExecutionPlan() throws Exception
getExecutionPlan in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic void startNewSession()
throws Exception
startNewSession in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic Client getClient()
public ClassLoader getUserCodeClassLoader()
public String getSavepointPath()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.