ifndef-SleePy commented on a change in pull request #8894:
[FLINK-12961][datastream] Providing an internal execution method of
StreamExecutionEnvironment accepting StreamGraph as input parameter
URL: https://github.com/apache/flink/pull/8894#discussion_r300665064
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
##########
@@ -1502,7 +1502,25 @@ public JobExecutionResult execute() throws Exception {
* @return The result of the job execution, containing elapsed time and
accumulators.
* @throws Exception which occurs during job execution.
*/
- public abstract JobExecutionResult execute(String jobName) throws
Exception;
+ public JobExecutionResult execute(String jobName) throws Exception {
+ Preconditions.checkNotNull(jobName, "Streaming Job name should
not be null.");
+
+ return execute(getStreamGraph(jobName));
+ }
+
+ /**
+ * Triggers the program execution. The environment will execute all
parts of
+ * the program that have resulted in a "sink" operation. Sink
operations are
+ * for example printing results or forwarding them to a message queue.
+ *
+ * <p>The program execution will be logged and displayed with the
provided name
Review comment:
Ah, that's my fault. I will remove this line before merging since Travis
checking is not finished yet.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services