flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm <...@git.apache.org>
Subject [GitHub] flink pull request #2732: [FLINK-4272] Create a JobClient for job control an...
Date Tue, 22 Nov 2016 15:18:44 GMT
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2732#discussion_r89137049
  
    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java
---
    @@ -911,6 +912,24 @@ public JobExecutionResult execute() throws Exception {
     	public abstract JobExecutionResult execute(String jobName) throws Exception;
     
     	/**
    +	 * Triggers the program execution, just like {@code execute()} but does not block.
    +	 * Instead, it returns a JobClient which can be used to interact with the running job.
    +	 * @return A JobClient for job interaction.
    +	 * @throws Exception Thrown if the program submission fails.
    +	 */
    +	public JobClient executeWithControl() throws Exception {
    +		return executeWithControl(getDefaultName());
    +	}
    +
    +	/**
    +	 * Triggers the program execution, just like {@code execute(String jobName)} but does
not block.
    +	 * Instead, it returns a JobClient which can be used to interact with the running job.
    +	 * @return A JobClient for job interaction.
    +	 * @throws Exception Thrown if the program submission fails.
    +	 */
    +	public abstract JobClient executeWithControl(String jobName) throws Exception;
    --- End diff --
    
    Maybe `executeWithClient`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message