Package org.apache.flink.datastream.impl
Class ExecutionEnvironmentImpl
- java.lang.Object
-
- org.apache.flink.datastream.impl.ExecutionEnvironmentImpl
-
- All Implemented Interfaces:
ExecutionEnvironment
- Direct Known Subclasses:
ExecutionContextEnvironment
public class ExecutionEnvironmentImpl extends Object implements ExecutionEnvironment
The implementation ofExecutionEnvironment
.IMPORTANT: Even though this is not part of public API,
ExecutionEnvironment
will get this class instance through reflection, so we must ensure that the package path, class name and the signature ofnewInstance()
does not change.
-
-
Method Summary
-
-
-
Method Detail
-
newInstance
public static ExecutionEnvironment newInstance()
Create and return an instance ofExecutionEnvironment
.IMPORTANT: The method is only expected to be called by
ExecutionEnvironment
via reflection, so we must ensure that the package path, class name and the signature of this method does not change.
-
execute
public void execute(String jobName) throws Exception
Description copied from interface:ExecutionEnvironment
Execute and submit the job attached to this environment.- Specified by:
execute
in interfaceExecutionEnvironment
- Throws:
Exception
-
getExecutionMode
public RuntimeExecutionMode getExecutionMode()
Description copied from interface:ExecutionEnvironment
Get the execution mode of this environment.- Specified by:
getExecutionMode
in interfaceExecutionEnvironment
-
setExecutionMode
public ExecutionEnvironment setExecutionMode(RuntimeExecutionMode runtimeMode)
Description copied from interface:ExecutionEnvironment
Set the execution mode for this environment.- Specified by:
setExecutionMode
in interfaceExecutionEnvironment
-
initializeContextEnvironment
protected static void initializeContextEnvironment(ExecutionEnvironmentFactory ctx)
-
resetContextEnvironment
protected static void resetContextEnvironment()
-
fromSource
public <OUT> NonKeyedPartitionStream<OUT> fromSource(Source<OUT> source, String sourceName)
- Specified by:
fromSource
in interfaceExecutionEnvironment
-
getConfiguration
public Configuration getConfiguration()
-
getExecutionConfig
public ExecutionConfig getExecutionConfig()
-
getParallelism
public int getParallelism()
-
getTransformations
public List<Transformation<?>> getTransformations()
-
setParallelism
public void setParallelism(int parallelism)
-
getCheckpointCfg
public CheckpointConfig getCheckpointCfg()
-
addOperator
public void addOperator(Transformation<?> transformation)
-
getStreamGraph
public StreamGraph getStreamGraph()
GetStreamGraph
and clear all transformations.
-
-