@PublicEvolving
public class StreamContextEnvironment
extends org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
StreamExecutionEnvironment that will be used in cases where the CLI client or
testing utilities create a StreamExecutionEnvironment that should be used when StreamExecutionEnvironment.getExecutionEnvironment() is called.| Constructor and Description |
|---|
StreamContextEnvironment(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration configuration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout) |
StreamContextEnvironment(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration clusterConfiguration,
org.apache.flink.configuration.Configuration configuration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout,
boolean programConfigEnabled,
Collection<String> programConfigWildcards) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(org.apache.flink.streaming.api.graph.StreamGraph streamGraph) |
org.apache.flink.core.execution.JobClient |
executeAsync(org.apache.flink.streaming.api.graph.StreamGraph streamGraph) |
static void |
setAsContext(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration clusterConfiguration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout) |
static void |
unsetAsContext() |
addDefaultKryoSerializer, addDefaultKryoSerializer, addOperator, addSource, addSource, addSource, addSource, areExplicitEnvironmentsAllowed, clean, clearJobListeners, close, configure, configure, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createLocalEnvironmentWithWebUI, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, disableOperatorChaining, enableChangelogStateBackend, enableCheckpointing, enableCheckpointing, enableCheckpointing, enableCheckpointing, execute, execute, executeAsync, executeAsync, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, fromSequence, fromSource, fromSource, generateSequence, generateStreamGraph, getBufferTimeout, getCachedFiles, getCheckpointConfig, getCheckpointingMode, getCheckpointInterval, getConfig, getConfiguration, getDefaultLocalParallelism, getDefaultSavepointDirectory, getExecutionEnvironment, getExecutionEnvironment, getExecutionPlan, getJobListeners, getMaxParallelism, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getStateBackend, getStreamGraph, getStreamGraph, getStreamTimeCharacteristic, getTransformations, getUserClassloader, initializeContextEnvironment, invalidateClusterDataset, isChainingEnabled, isChainingOfOperatorsWithDifferentMaxParallelismEnabled, isChangelogStateBackendEnabled, isForceCheckpointing, isForceUnalignedCheckpoints, isUnalignedCheckpointsEnabled, listCompletedClusterDatasets, readFile, readFile, readFile, readFile, readFileStream, readTextFile, readTextFile, registerCachedFile, registerCachedFile, registerCacheTransformation, registerCollectIterator, registerJobListener, registerSlotSharingGroup, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setBufferTimeout, setDefaultLocalParallelism, setDefaultSavepointDirectory, setDefaultSavepointDirectory, setDefaultSavepointDirectory, setMaxParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setRuntimeMode, setStateBackend, setStreamTimeCharacteristic, socketTextStream, socketTextStream, socketTextStream, socketTextStream, socketTextStreampublic StreamContextEnvironment(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration configuration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout)
@Internal
public StreamContextEnvironment(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration clusterConfiguration,
org.apache.flink.configuration.Configuration configuration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout,
boolean programConfigEnabled,
Collection<String> programConfigWildcards)
public org.apache.flink.api.common.JobExecutionResult execute(org.apache.flink.streaming.api.graph.StreamGraph streamGraph)
throws Exception
execute in class org.apache.flink.streaming.api.environment.StreamExecutionEnvironmentExceptionpublic org.apache.flink.core.execution.JobClient executeAsync(org.apache.flink.streaming.api.graph.StreamGraph streamGraph)
throws Exception
executeAsync in class org.apache.flink.streaming.api.environment.StreamExecutionEnvironmentExceptionpublic static void setAsContext(org.apache.flink.core.execution.PipelineExecutorServiceLoader executorServiceLoader,
org.apache.flink.configuration.Configuration clusterConfiguration,
ClassLoader userCodeClassLoader,
boolean enforceSingleJobExecution,
boolean suppressSysout)
public static void unsetAsContext()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.