public class TestStreamEnvironment
extends org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
StreamExecutionEnvironment that executes its jobs on LocalFlinkMiniCluster.| Constructor and Description |
|---|
TestStreamEnvironment(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
int parallelism) |
TestStreamEnvironment(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
int parallelism,
Collection<org.apache.flink.core.fs.Path> jarFiles,
Collection<URL> classPaths) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
static void |
setAsContext(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
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 |
setAsContext(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
int parallelism,
Collection<org.apache.flink.core.fs.Path> jarFiles,
Collection<URL> classpaths)
Sets the streaming context environment to a TestStreamEnvironment that runs its programs on
the given cluster with the given default parallelism and the specified jar files and class
paths.
|
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, getCachedFiles, getCheckpointConfig, getCheckpointingMode, getCheckpointInterval, getConfig, getDefaultLocalParallelism, getExecutionEnvironment, getExecutionPlan, getMaxParallelism, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getStateBackend, getStreamGraph, getStreamTimeCharacteristic, initializeContextEnvironment, isChainingEnabled, isForceCheckpointing, readFile, readFile, readFile, readFile, readFileStream, readTextFile, readTextFile, registerCachedFile, registerCachedFile, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setBufferTimeout, setDefaultLocalParallelism, setMaxParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setStateBackend, setStateBackend, setStreamTimeCharacteristic, socketTextStream, socketTextStream, socketTextStream, socketTextStream, socketTextStreampublic TestStreamEnvironment(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
int parallelism,
Collection<org.apache.flink.core.fs.Path> jarFiles,
Collection<URL> classPaths)
public TestStreamEnvironment(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
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.runtime.minicluster.JobExecutor jobExecutor,
int parallelism,
Collection<org.apache.flink.core.fs.Path> jarFiles,
Collection<URL> classpaths)
jobExecutor - The executor to execute the jobs onparallelism - The default parallelism for the test programs.jarFiles - Additional jar files to execute the job withclasspaths - Additional class paths to execute the job withpublic static void setAsContext(org.apache.flink.runtime.minicluster.JobExecutor jobExecutor,
int parallelism)
jobExecutor - The executor to execute the jobs onparallelism - The default parallelism for the test programs.public static void unsetAsContext()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.