/** * 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. * * @param jobExecutor The executor to execute the jobs on * @param parallelism The default parallelism for the test programs. * @param jarFiles Additional jar files to execute the job with * @param classpaths Additional class paths to execute the job with */ public static void setAsContext( final JobExecutor jobExecutor, final int parallelism, final Collection<Path> jarFiles, final Collection<URL> classpaths) { StreamExecutionEnvironmentFactory factory = new StreamExecutionEnvironmentFactory() { @Override public StreamExecutionEnvironment createExecutionEnvironment() { return new TestStreamEnvironment( jobExecutor, parallelism, jarFiles, classpaths); } }; initializeContextEnvironment(factory); }
/** * 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. * * @param cluster The test cluster to run the test program on. * @param parallelism The default parallelism for the test programs. * @param jarFiles Additional jar files to execute the job with * @param classpaths Additional class paths to execute the job with */ public static void setAsContext( final LocalFlinkMiniCluster cluster, final int parallelism, final Collection<Path> jarFiles, final Collection<URL> classpaths) { StreamExecutionEnvironmentFactory factory = new StreamExecutionEnvironmentFactory() { @Override public StreamExecutionEnvironment createExecutionEnvironment() { return new TestStreamEnvironment( cluster, parallelism, jarFiles, classpaths); } }; initializeContextEnvironment(factory); }
/** * 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. * * @param jobExecutor The executor to execute the jobs on * @param parallelism The default parallelism for the test programs. * @param jarFiles Additional jar files to execute the job with * @param classpaths Additional class paths to execute the job with */ public static void setAsContext( final JobExecutor jobExecutor, final int parallelism, final Collection<Path> jarFiles, final Collection<URL> classpaths) { StreamExecutionEnvironmentFactory factory = new StreamExecutionEnvironmentFactory() { @Override public StreamExecutionEnvironment createExecutionEnvironment() { return new TestStreamEnvironment( jobExecutor, parallelism, jarFiles, classpaths); } }; initializeContextEnvironment(factory); }
/** * 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. * * @param jobExecutor The executor to execute the jobs on * @param parallelism The default parallelism for the test programs. * @param jarFiles Additional jar files to execute the job with * @param classpaths Additional class paths to execute the job with */ public static void setAsContext( final JobExecutor jobExecutor, final int parallelism, final Collection<Path> jarFiles, final Collection<URL> classpaths) { StreamExecutionEnvironmentFactory factory = new StreamExecutionEnvironmentFactory() { @Override public StreamExecutionEnvironment createExecutionEnvironment() { return new TestStreamEnvironment( jobExecutor, parallelism, jarFiles, classpaths); } }; initializeContextEnvironment(factory); }
/** * 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. * * @param jobExecutor The executor to execute the jobs on * @param parallelism The default parallelism for the test programs. * @param jarFiles Additional jar files to execute the job with * @param classpaths Additional class paths to execute the job with */ public static void setAsContext( final JobExecutor jobExecutor, final int parallelism, final Collection<Path> jarFiles, final Collection<URL> classpaths) { StreamExecutionEnvironmentFactory factory = new StreamExecutionEnvironmentFactory() { @Override public StreamExecutionEnvironment createExecutionEnvironment() { return new TestStreamEnvironment( jobExecutor, parallelism, jarFiles, classpaths); } }; initializeContextEnvironment(factory); }