public class ContextEnvironment
extends org.apache.flink.api.java.ExecutionEnvironment
| Modifier and Type | Field and Description |
|---|---|
protected List<URL> |
classpathsToAttach |
protected ClusterClient<?> |
client |
protected List<URL> |
jarFilesToAttach |
protected org.apache.flink.runtime.jobgraph.SavepointRestoreSettings |
savepointSettings |
protected ClassLoader |
userCodeClassLoader |
| Constructor and Description |
|---|
ContextEnvironment(ClusterClient<?> remoteConnection,
List<URL> jarFiles,
List<URL> classpaths,
ClassLoader userCodeClassLoader,
org.apache.flink.runtime.jobgraph.SavepointRestoreSettings savepointSettings) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
List<URL> |
getClasspaths() |
ClusterClient<?> |
getClient() |
String |
getExecutionPlan() |
List<URL> |
getJars() |
org.apache.flink.runtime.jobgraph.SavepointRestoreSettings |
getSavepointRestoreSettings() |
ClassLoader |
getUserCodeClassLoader() |
void |
startNewSession() |
String |
toString() |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, createCollectionsEnvironment, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createLocalEnvironmentWithWebUI, createProgramPlan, createProgramPlan, createProgramPlan, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, execute, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getDefaultLocalParallelism, getExecutionEnvironment, getId, getIdString, getLastJobExecutionResult, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getSessionTimeout, initializeContextEnvironment, readCsvFile, readFile, readFileOfPrimitives, readFileOfPrimitives, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerCachedFile, registerCachedFile, registerCachedFilesWithPlan, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setSessionTimeoutprotected final ClusterClient<?> client
protected final ClassLoader userCodeClassLoader
protected final org.apache.flink.runtime.jobgraph.SavepointRestoreSettings savepointSettings
public ContextEnvironment(ClusterClient<?> remoteConnection, List<URL> jarFiles, List<URL> classpaths, ClassLoader userCodeClassLoader, org.apache.flink.runtime.jobgraph.SavepointRestoreSettings savepointSettings)
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 ClusterClient<?> getClient()
public ClassLoader getUserCodeClassLoader()
public org.apache.flink.runtime.jobgraph.SavepointRestoreSettings getSavepointRestoreSettings()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.