public class TestStreamEnvironment extends StreamExecutionEnvironment
DEFAULT_JOB_NAME, isChainingEnabled, transformations| Constructor and Description |
|---|
TestStreamEnvironment(org.apache.flink.runtime.minicluster.LocalFlinkMiniCluster executor,
int parallelism) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
static void |
setAsContext(org.apache.flink.runtime.minicluster.LocalFlinkMiniCluster 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, createLocalEnvironmentWithWebUI, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, disableOperatorChaining, enableCheckpointing, enableCheckpointing, enableCheckpointing, enableCheckpointing, execute, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getBufferTimeout, getCheckpointConfig, getCheckpointingMode, getCheckpointInterval, getConfig, getDefaultLocalParallelism, getExecutionEnvironment, getExecutionPlan, getMaxParallelism, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getStateBackend, getStreamGraph, getStreamTimeCharacteristic, initializeContextEnvironment, isChainingEnabled, isForceCheckpointing, readFile, readFile, readFile, readFile, readFileStream, readTextFile, readTextFile, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setBufferTimeout, setDefaultLocalParallelism, setMaxParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setStateBackend, setStreamTimeCharacteristic, socketTextStream, socketTextStream, socketTextStream, socketTextStream, socketTextStreampublic TestStreamEnvironment(org.apache.flink.runtime.minicluster.LocalFlinkMiniCluster executor, int parallelism)
public org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws Exception
execute in class StreamExecutionEnvironmentExceptionpublic static void setAsContext(org.apache.flink.runtime.minicluster.LocalFlinkMiniCluster 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–2017 The Apache Software Foundation. All rights reserved.