[
https://issues.apache.org/jira/browse/BEAM-2588?focusedWorklogId=100827&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-100827
]
ASF GitHub Bot logged work on BEAM-2588:
----------------------------------------
Author: ASF GitHub Bot
Created on: 10/May/18 20:46
Start Date: 10/May/18 20:46
Worklog Time Spent: 10m
Work Description: axelmagn commented on a change in pull request #5262:
[BEAM-2588] WIP Portability Runner Job Service
URL: https://github.com/apache/beam/pull/5262#discussion_r187455124
##########
File path:
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/jobsubmission/JobInvocation.java
##########
@@ -0,0 +1,41 @@
+package org.apache.beam.runners.fnexecution.jobsubmission;
+
+import io.grpc.stub.StreamObserver;
+import org.apache.beam.model.jobmanagement.v1.JobApi.JobMessage;
+import org.apache.beam.model.jobmanagement.v1.JobApi.JobState;
+
+/**
+ * Internal representation of a Job which has been invoked (prepared and run)
by a client.
+ */
+public interface JobInvocation {
+
+ /**
+ * Start the job.
+ */
+ void start();
+
+ /**
+ * @return Unique identifier for the job invocation.
+ */
+ String getId();
+
+ /**
+ * Cancel the job.
+ */
+ void cancel();
+
+ /**
+ * Retrieve the job's current state.
+ */
+ JobState.Enum getState();
+
+ /**
+ * Observe job state changes with a {@link StreamObserver}.
+ */
+ void addStateObserver(StreamObserver<JobState.Enum> stateStreamObserver);
+
+ /**
+ * Observe job messages with a {@link StreamObserver}.
+ */
+ void addMessageObserver(StreamObserver<JobMessage> messageStreamObserver);
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 100827)
Time Spent: 1h 20m (was: 1h 10m)
> Portable Flink Runner Job API
> -----------------------------
>
> Key: BEAM-2588
> URL: https://issues.apache.org/jira/browse/BEAM-2588
> Project: Beam
> Issue Type: New Feature
> Components: runner-flink
> Reporter: Kenneth Knowles
> Assignee: Axel Magnuson
> Priority: Major
> Labels: portability
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> The portable Flink runner needs to be wired into a job server so that it can
> accept jobs the job api (https://s.apache.org/beam-job-api).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)