public class DataflowPipelineJob extends java.lang.Object implements PipelineResult
DataflowPipelineRunner.| Constructor and Description |
|---|
DataflowPipelineJob(java.lang.String projectId,
java.lang.String jobId,
com.google.api.services.dataflow.Dataflow client)
Construct the job.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.dataflow.Dataflow |
getDataflowClient() |
java.lang.String |
getJobId() |
java.lang.String |
getProjectId() |
com.google.cloud.dataflow.sdk.util.MonitoringUtil.JobState |
waitToFinish(long timeToWait,
java.util.concurrent.TimeUnit timeUnit,
com.google.cloud.dataflow.sdk.util.MonitoringUtil.JobMessagesHandler messageHandler)
Wait for the job to finish and return the final status.
|
public DataflowPipelineJob(java.lang.String projectId,
java.lang.String jobId,
com.google.api.services.dataflow.Dataflow client)
projectId - the project idjobId - the job idclient - the workflow clientpublic java.lang.String getJobId()
public java.lang.String getProjectId()
public com.google.api.services.dataflow.Dataflow getDataflowClient()
@Nullable
public com.google.cloud.dataflow.sdk.util.MonitoringUtil.JobState waitToFinish(long timeToWait,
java.util.concurrent.TimeUnit timeUnit,
com.google.cloud.dataflow.sdk.util.MonitoringUtil.JobMessagesHandler messageHandler)
throws java.io.IOException,
java.lang.InterruptedException
timeToWait - The time to wait in units timeUnit for the job to finish.timeUnit - The unit of time for timeToWait.
Provide a negative value for an infinite wait.messageHandler - If non null this handler will be invoked for each
batch of messages received.java.io.IOException - If there is a persistent problem getting job
information.java.lang.InterruptedException