public class ContextEnvironment extends ExecutionEnvironment
| Modifier and Type | Field and Description |
|---|---|
protected List<URL> |
classpathsToAttach |
protected ClusterClient |
client |
protected List<URL> |
jarFilesToAttach |
protected SavepointRestoreSettings |
savepointSettings |
protected ClassLoader |
userCodeClassLoader |
jobID, lastJobExecutionResult, LOG, sessionTimeout| Constructor and Description |
|---|
ContextEnvironment(ClusterClient remoteConnection,
List<URL> jarFiles,
List<URL> classpaths,
ClassLoader userCodeClassLoader,
SavepointRestoreSettings savepointSettings) |
| Modifier and Type | Method and Description |
|---|---|
JobExecutionResult |
execute(String jobName) |
List<URL> |
getClasspaths() |
ClusterClient |
getClient() |
String |
getExecutionPlan() |
List<URL> |
getJars() |
SavepointRestoreSettings |
getSavepointRestoreSettings() |
ClassLoader |
getUserCodeClassLoader() |
void |
startNewSession() |
String |
toString() |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, createCollectionsEnvironment, createHadoopInput, createHadoopInput, 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, readHadoopFile, readHadoopFile, readHadoopFile, readHadoopFile, readSequenceFile, 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 SavepointRestoreSettings savepointSettings
public ContextEnvironment(ClusterClient remoteConnection, List<URL> jarFiles, List<URL> classpaths, ClassLoader userCodeClassLoader, SavepointRestoreSettings savepointSettings)
public 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 ClusterClient getClient()
public ClassLoader getUserCodeClassLoader()
public SavepointRestoreSettings getSavepointRestoreSettings()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.