public interface JobInvocation
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(java.util.function.Consumer<org.apache.beam.model.jobmanagement.v1.JobApi.JobMessage> messageStreamObserver)
Listen for job messages with a
Consumer . |
void |
addStateListener(java.util.function.Consumer<org.apache.beam.model.jobmanagement.v1.JobApi.JobState.Enum> stateStreamObserver)
Listen for job state changes with a
Consumer . |
void |
cancel()
Cancel the job.
|
java.lang.String |
getId() |
org.apache.beam.model.jobmanagement.v1.JobApi.JobState.Enum |
getState()
Retrieve the job's current state.
|
void |
start()
Start the job.
|
void start()
java.lang.String getId()
void cancel()
org.apache.beam.model.jobmanagement.v1.JobApi.JobState.Enum getState()
void addStateListener(java.util.function.Consumer<org.apache.beam.model.jobmanagement.v1.JobApi.JobState.Enum> stateStreamObserver)
Consumer
.void addMessageListener(java.util.function.Consumer<org.apache.beam.model.jobmanagement.v1.JobApi.JobMessage> messageStreamObserver)
Consumer
.