public class TestStreamEnvironment
extends org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
| Constructor and Description |
|---|
TestStreamEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
static void |
setAsContext(org.apache.flink.test.util.ForkableFlinkMiniCluster cluster,
int parallelism)
Sets the streaming context environment to a TestStreamEnvironment that runs its programs on
the given cluster with the given default parallelism.
|
static void |
unsetAsContext()
Resets the streaming context environment to null.
|
addDefaultKryoSerializer, addDefaultKryoSerializer, addOperator, addSource, addSource, addSource, addSource, clean, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, disableOperatorChaining, enableCheckpointing, enableCheckpointing, enableCheckpointing, enableCheckpointing, execute, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getBufferTimeout, getCheckpointConfig, getCheckpointingMode, getCheckpointInterval, getConfig, getExecutionEnvironment, getExecutionPlan, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getStateBackend, getStreamGraph, getStreamTimeCharacteristic, initializeContextEnvironment, isChainingEnabled, isForceCheckpointing, readFile, readFile, readFile, readFileStream, readTextFile, readTextFile, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setBufferTimeout, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setStateBackend, setStreamTimeCharacteristic, socketTextStream, socketTextStream, socketTextStream, socketTextStream, socketTextStreampublic TestStreamEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism)
public org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws Exception
execute in class org.apache.flink.streaming.api.environment.StreamExecutionEnvironmentExceptionpublic static void setAsContext(org.apache.flink.test.util.ForkableFlinkMiniCluster cluster,
int parallelism)
cluster - The test cluster to run the test program on.parallelism - The default parallelism for the test programs.public static void unsetAsContext()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.